History log of /external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
68d6441930fa19e2414a4c273ddce15e0c71de99 12-Apr-2012 Vadim Girlin <vadimgirlin@gmail.com> st/dri: pass config options to the state tracker

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
e7c177ec9e37d0c406c3b0ef8f228159d7ee5d69 12-Apr-2012 Vadim Girlin <vadimgirlin@gmail.com> st/dri: use driver name for driconf section lookup

The name is taken from the driver_descriptor, so it will be the same as
expected by driconf utility.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
c5976017e31828dd67fb54e8c11b863fffcac70b 24-Jan-2012 Lauri Kasanen <cand@gmx.com> gallium/postprocess: Fix depth logic

This prevents a possible lapse of the depth buffer - the situation where
the app and pp have different depth buffers.

NOTE: This is a candidate for the 8.0 stable branch.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
81da773f841aa69debc473537750c475e6261e37 18-Jan-2012 Stéphane Marchesin <marcheu@chromium.org> st/dri: Remove useless flush front.

In the following scenario:
- CreateContext C1
- MakeCurrent C1
- DestroyContext C1 (does not actually destroy the first context, postponed
until the next MakeCurrent)
- CreateContext C2
- MakeCurrent C2
MakeCurrent will call flush on a half destroyed context, leading to crashes.
Since the other paths (destroy and makecurrent) already flush the context,
there is no need to flush here, so we remove this useless flush front call.

This fixes GPU crashes with Chrome and gallium drivers.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
e532b6288f01b63d8d8ba8c8dc08292967e65490 01-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> dri2: Add plumbing to get context version requirements and flags to drivers

This adds support for DRI_DRI2 version 3 to all of the DRI2 drivers.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
d18152028e1825c05c7de33acacee3336350a096 14-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> st-api: Have context_create explain why creation failed

This won't be used in the client-side libGL, but the xserver has to
generate a different protocol error depending on the reason context
creation failed.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chia-I Wu <olv@lunarg.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
fc9e80fab9dc529cbe67cc718b89b17e18fa41d8 03-Nov-2011 George Sapountzis <gsapountzis@gmail.com> dri: drop drmLock remnants
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
7e302168798907e6e0b08d96141d97f04958a73e 10-Sep-2011 Marek Olšák <maraeo@gmail.com> st/dri: remove the call to driInitExtensions

The function no longer exists. This fixes Gallium build.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
421235d42ad9921fd45332ec7b33bcee5c1ad33d 19-Aug-2011 Lauri Kasanen <cand@gmx.com> st/dri: Bind the post-processing queue to dri

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
d644a50dc328e54d513e4304378bb8c34148f7cc 10-Jul-2011 Marek Olšák <maraeo@gmail.com> st/dri: remove unused variables
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
ade9f0d727092ca86f3896f733e085d9fd2bb8b2 28-Jun-2011 Thomas Hellstrom <thellstrom@vmware.com> st/dri: Get rid of the evil struct dri_drawable::context member

It's incorrect to assume a single context bound to a drawable.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
7e02303497237cde958c28608477d0c355a8038b 08-Mar-2011 Marek Olšák <maraeo@gmail.com> gallium: remove flags from the flush function

The drivers have been changed so that they behave as if all of the flags
were set. This is already implicit in most hardware drivers and required
for multiple contexts.

Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag
to decide whether flush_frontbuffer should be called.
New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
94ccc31ba4f64ac480137fd90f1ded44d2072f6e 01-Dec-2010 Jakob Bornecrantz <wallbraker@gmail.com> st/dri: Track drawable context bindings

Needs to track this ourself since because we get into a race condition with
the dri_util.c code on make current when rendering to the front buffer.

This is what happens:
Old context is rendering to the front buffer.

App calls MakeCurrent with a new context. dri_util.c sets
drawable->driContextPriv to the new context and then calls the driver make
current. st/dri make current flushes the old context, which calls back into
st/dri via the flush frontbuffer hook. st/dri calls dri loader flush
frontbuffer, which calls invalidate buffer on the drawable into st/dri.

This is where things gets wrong. st/dri grabs the context from the dri
drawable (which now points to the new context) and calls invalidate
framebuffer to the new context which has not yet set the new drawable as its
framebuffers since we have not called make current yet, it asserts.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
0acb31be171f01aec8b38ceaddf47b7da6dae2a0 09-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/dri: Fix surfaceless gl using contexts with previous bound surfaces

ctx->dPriv might be != NULL then draw which is NULL is accessed:

struct dri_drawable *draw = dri_drawable(driDrawPriv);
[..]
if (ctx->dPriv != driDrawPriv) {
ctx->dPriv = driDrawPriv;
draw->texture_stamp = driDrawPriv->lastStamp - 1;
}
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
5b6ec5a553876266bfa2ef65081aa1075419b97e 09-Nov-2010 Chia-I Wu <olv@lunarg.com> st/dri: Add support for surfaceless current contexts.

Tested with Wayland.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
d3491e775fb07f891463b2185d74bbad62f3ed24 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Rename GLvisual and __GLcontextModes to struct gl_config
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
0cd480f07639ec9ee01424aaa3e0c900b2204d4f 10-Sep-2010 Chia-I Wu <olv@lunarg.com> st/dri: Use profiles to create OpenGL ES contexts.

Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is
not a sane abstraction, since all of them share glapi for current
context/dispatch management.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
4531356817ec8383ac35932903773de67af92e37 10-Sep-2010 Chia-I Wu <olv@lunarg.com> gallium: Add context profile support to st_api.

Add struct st_context_attribs to describe context profiles and
attributes. Modify st_api::create_context to take the new struct
instead of an st_visual.

st_context_attribs can be used to support GLX_ARB_create_context_profile
and GLX_EXT_create_context_es2_profile in the future. But the
motivation for doing it now is to be able to replace ST_API_OPENGL_ES1
and ST_API_OPENGL_ES2 by profiles.

Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is
not a sane abstraction, since all of them share glapi for current
context/dispatch management.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
7e03e2b2c787657f2abe4bd362e625bd9a971c48 08-Sep-2010 Chia-I Wu <olv@lunarg.com> st/dri: Call dri_init_extensions only for API_OPENGL.

libmesagallium.a that this state tracker will be linked to expects
OpenGL's _glapi_table. That is, it expects libGL.so instead of
libGLESv1_CM.so or libGLESv2.so. As there is no clean way to know the
shared library the app links to, use the api as a simple check. It
might be as well to simply remove this function call though.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
444d8408e75bb2bce019769da59802f05c3d5fab 08-Sep-2010 Chia-I Wu <olv@lunarg.com> st/dri: Use enum st_api_type internally.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
8e3b658b7fdc1c2a2b9b6bd942a811adbf1ac4ab 30-Aug-2010 nobled <nobled@dreamwidth.org> st/dri: Add multi-api support

Make st/dri screens capable of creating OpenGL ES and
OpenGL ES2 contexts.

TODO: Figure out the "get_current" problem with multiple
st_api's for real.

(s/API_OPENGLES1/API_OPENGLES/ by Chia-I Wu)
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
ecd7ec9d62d2ba919410218f4cf3f69772681f3c 07-Sep-2010 nobled <nobled@dreamwidth.org> st/dri: Make clear which API's are supported

If the caller requests a GLES context, don't silently create
a desktop GL context in its place.
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
38e3fb23da9f75632992767fa3a01d335b9bb7ab 02-May-2010 Xavier Chantry <chantry.xavier@gmail.com> Update dri state tracker to use new API aware context create
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
8fbd66d75a7b58a27ceb16bc23dfa5999cbe7483 27-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> st/dri: Don't check for null when user ensures non-null
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
ae79e778f7fae99812ade79ecf5cf3c783d2a93b 26-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> st/dri: Use flush function of old context not new
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
1372a8f90dc64350e4ac29dbb8c5feb88bc83cd1 24-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> st/dri: Refactor dri_st_api into other files
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
27779ddad5c61d2fc46367e1556b5e53403c2a97 24-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> st/dri: Make st_framebuffer_iface the base for dri_drawable
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
a66b391edf746a5eb0cb4aad1ff2e546df00a11d 24-Apr-2010 Jakob Bornecrantz <wallbraker@gmail.com> st/dri: Make st_manager the base for dri_screen
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
4b722bf9fde668dff1c2b55b34eb3f86c78f43fb 26-Mar-2010 George Sapountzis <gsapountzis@gmail.com> st/dri: fold dri_extensions.c into dri_context.c
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c
80672e84cf79ab12b7a4ff56567184d1c39baef3 25-Mar-2010 Jakob Bornecrantz <wallbraker@gmail.com> st/dri: Move common files to common directory

27 files changed, 15 insertions(+), 15 deletions(-)
rename src/gallium/state_trackers/dri/{ => common}/dri1_helper.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri1_helper.h (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_context.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_context.h (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_drawable.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_drawable.h (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_extensions.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_screen.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_screen.h (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_st_api.c (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_st_api.h (100%)
rename src/gallium/state_trackers/dri/{ => common}/dri_wrapper.h (100%)
/external/mesa3d/src/gallium/state_trackers/dri/common/dri_context.c