a8724d85f8cb2f0fb73b9c6c1f268f9084c6d473 |
|
03-Jul-2012 |
Ian Romanick <ian.d.romanick@intel.com> |
glx/dri2: Add support for GLX_ARB_create_context_robustness Add the infrastructure required for this extension. There is no xserver support and no driver support yet. Drivers can enable this be advertising DRI2 version 4 and accepting the __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag and the __DRI_CTX_ATTRIB_RESET_STRATEGY attribute in create context. Some additional Mesa infrastructure is needed before drivers can do this. The GL_ARB_robustness spec, which all Mesa drivers already advertise, requires: "If the behavior is LOSE_CONTEXT_ON_RESET_ARB, a graphics reset will result in the loss of all context state, requiring the recreation of all associated objects." It is necessary to land this infrastructure now so that the related infrastructure can land in the xserver. The xserver has very long release schedules, and the remaining Mesa parts should land long, long before the next xserver merge window opens. v2: Expose robustness as a DRI2 extension rather than bumping __DRI_DRI2_VERSION. v3: Add a comment explaining why dri2->base.version >= 3 is also required for GLX_ARB_create_context_robustness. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/dri_common.c
|
7a6324dbfe8d354b9b5f3181af0ce6bebbb374cc |
|
20-Mar-2012 |
Wang YanQing <udknight@gmail.com> |
glx:dri_common.c: check psc->driScreen->createDrawable return value createDrawable may return NULL value, we should check it, or it will make a segment failed. [minor-indent-issue-fixed-by: Yuanhan Liu] Signed-off-by: Wang YanQing <udknight@gmail.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
/external/mesa3d/src/glx/dri_common.c
|
92bef0bfa121e0e58112ffae352c8ad9e5da6307 |
|
04-Feb-2012 |
Carl Worth <cworth@cworth.org> |
dri: Add a CriticalErrorMessageF macro. Sometimes an error is so sever that we want to print it even when the user hasn't specifically requested debugging by setting LIBGL_DEBUG. Add a CriticalErrorMessageF macro to be used for this case. (The error message can still be slienced with the existing LIBGL_DEBUG=quiet). For critical error messages we also direct the user to set the LIBGL_DEBUG environment variable for more details. Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
/external/mesa3d/src/glx/dri_common.c
|
c09504c343d904dc8c135c9b7241e8315c134d0f |
|
04-Feb-2012 |
Carl Worth <cworth@cworth.org> |
dri: Clarify comments on InfoMessageF and ErrorMessageF macros. The description of ErrorMessageF was misleading in the case of LIBGL_DEBUG being unset, (the previous comment could be understood to mean the error should be printed, but the code does not print in this case). InfoMessageF previously had no comment at all. Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
/external/mesa3d/src/glx/dri_common.c
|
10a6fde333f0170fbac70924581c647e531aba3e |
|
11-Jan-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
glx/dri: Initialize api even if num_attribs == 0. Both dri2_create_context_attribs and drisw_create_context_attribs call dri2_convert_glx_attribs, expecting it to fill in *api on success. However, when num_attribs == 0, it was returning true without setting *api, causing the caller to use an uninitialized value. Tested-by: Vadim Girlin <vadimgirlin@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glx/dri_common.c
|
e6280c3ba9579bf01f8b82e19497ba8f142a8d09 |
|
02-Dec-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
glx: Enable GLX_EXT_create_context_es2_profile This extension is only enabled if the underlying driver advertises support for OpenGL ES 2.0. This happens either through the getAPIMask function in version 2 of the DRI2 extension or implicity through version 2 of the DRISW extension. Since there is no OpenGL ES 2.0 protocol, this extension is marked as only available with direct-rendering. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/dri_common.c
|
b45f77dc4c9662a774c19db764bb8f95c4f61073 |
|
01-Dec-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
glx/dri: Add utility function dri2_convert_glx_attribs This converts all of the GLX data from glXCreateContextAttribsARB to the values expected by the DRI driver interfaces. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/dri_common.c
|
63a6fd6603574c1c01324fbeb0863e39d3864c16 |
|
06-Dec-2011 |
Aaron Plattner <aplattner@nvidia.com> |
glx: Fix indirect fallback when a non-Mesa GLX extension is present. When driCreateScreen calls driConvertConfigs to try to convert the configs for swrast, it fails and returns NULL. Instead of checking, it just clobbers psc->base.configs. Then, when the application asks for the FBconfigs, there aren't any. Instead, make the caller responsible for freeing the old modes lists if both calls to driConvertConfigs succeed. Without the second fix, glxinfo fails unless you run it with LIBGL_ALWAYS_INDIRECT: $ glxinfo name of display: :0.0 Error: couldn't find RGB GLX visual or fbconfig $ LIBGL_ALWAYS_INDIRECT=1 glxinfo name of display: :0.0 display: :0 screen: 0 direct rendering: No (LIBGL_ALWAYS_INDIRECT set) server glx vendor string: NVIDIA Corporation server glx version string: 1.4 [...] Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/dri_common.c
|
e4344161bde2e24fcfba65d30d58f087bd8bf94d |
|
25-Aug-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
dri: Remove all DRI1 drivers Acked-by: Kristian Høgsberg <krh@bitplanet.net> Acked-by: Marek Olšák <maraeo@gmail.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Jakob Bornecrantz <jakob@vmware.com> Acked-by: Dave Airlie <airlied@redhat.com> Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com> Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
/external/mesa3d/src/glx/dri_common.c
|
0f20e2e18f902b4319851643e1775a18c2aacb3d |
|
18-Jul-2011 |
Henri Verbeet <hverbeet@gmail.com> |
glx: Avoid calling __glXInitialize() in driReleaseDrawables(). This fixes a regression introduced by commit a26121f37530619610a78a5fbe5ef87e44047fda (fd.o bug #39219). Since the __glXInitialize() call should be unnecessary anyway, this is probably a nicer fix for the original problem too. NOTE: This is a candidate for the 7.10 and 7.11 branches. Signed-off-by: Henri Verbeet <hverbeet@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: padfoot@exemail.com.au
/external/mesa3d/src/glx/dri_common.c
|
bf69ce37f0dcbb479078ee676d5100ac63e20750 |
|
16-Jun-2011 |
Stéphane Marchesin <marcheu@chromium.org> |
glx: implement drawable refcounting. The current dri context unbind logic will leak drawables until the process dies (they will then get released by the GEM code). There are two ways to fix this: either always call driReleaseDrawables every time we unbind a context (but that costs us round trips to the X server at getbuffers() time) or implement proper drawable refcounting. This patch implements the latter. Signed-off-by: Antoine Labour <piman@chromium.org> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/dri_common.c
|
6538b5824e298eaebede2d9686c7607c44ab446a |
|
06-Mar-2011 |
Dave Airlie <airlied@redhat.com> |
glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB. This realigns the name of the glx bit to align with the core mesa names.
/external/mesa3d/src/glx/dri_common.c
|
4b70fe8421f5132c585ff1dfb8d90229be26e71f |
|
29-Sep-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Only remove drawables from the hash when we actually delete them https://bugs.freedesktop.org/show_bug.cgi?id=30457
/external/mesa3d/src/glx/dri_common.c
|
16887d042a917fa4773e4d853f50051b54e9948c |
|
27-Aug-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Drop broken drawable garbage collection Doesn't work for pixmaps, was looking up the GLX XID and was never thread safe. Instead, just destroy the client side structures when the drawable is no long current for a context.
/external/mesa3d/src/glx/dri_common.c
|
c491e585e43d48a2aeec96ccc4008da6c443fb42 |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move bind and unbind to context vtable
/external/mesa3d/src/glx/dri_common.c
|
65d98e25770487456eb3d7eb8ec3ec8272f170b1 |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Rename glcontextmodes.[ch] to glxconfig.[ch]
/external/mesa3d/src/glx/dri_common.c
|
6ddf66e9230ee862ac341c4767cf6b3b2dd2552b |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Rename __GLcontextModes to struct glx_config With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before.
/external/mesa3d/src/glx/dri_common.c
|
7a66e549583a3168f05acc7df1e872d218fd670d |
|
21-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move last few dri_interface.h types out of glxclient.h and drop include
/external/mesa3d/src/glx/dri_common.c
|
a7292f2920a28a190ca39ce530454a852ec36d59 |
|
20-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move DRI CopySubBuffer extension to DRI1 code We do this in the X server for DRI2.
/external/mesa3d/src/glx/dri_common.c
|
bab13969d8bf3ff9259524c3f4ab96d81485ccef |
|
20-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move driver_configs to DRI screen privates
/external/mesa3d/src/glx/dri_common.c
|
22266c391fbe17603b15a83d4ccf5fa9455ccf8d |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Remove support for MESA_swap_frame_usage The extension never worked, the implementation returns GLX_BAD_CONTEXT when enabling the frame tracking.
/external/mesa3d/src/glx/dri_common.c
|
089fc37c6fa158824279e08e3b378ced94d6f803 |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move DRI1 specific extensions and code to DRI1 screen private
/external/mesa3d/src/glx/dri_common.c
|
9e546ecfd446abf1236cdb0b9469157de5d084ce |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move DRI2 extensions to DRI2 screen private
/external/mesa3d/src/glx/dri_common.c
|
cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Drop support for GLX_MESA_allocate_memory Only r200 implemented it.
/external/mesa3d/src/glx/dri_common.c
|
f972115d33e391499e049b83a1559959f2ca9f72 |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Add screen privates for dri drivers and moved some fields there GLXscreenConfigs is badly named and a dumping ground for a lot of stuff. This patch creates private screen structs for the dri drivers and moves some of their fields over there.
/external/mesa3d/src/glx/dri_common.c
|
1fa7789e828d1005e2473fc7cd364bd45eb30843 |
|
28-Apr-2010 |
Brian Paul <brianp@vmware.com> |
Merge branch '7.8' Conflicts: src/glx/dri2_glx.c src/glx/glx_pbuffer.c
|
80b280db883edc9550484dba03bd5c124b6a9bf9 |
|
02-Apr-2010 |
Jeremy Huddleston <jeremyhu@apple.com> |
apple: Change ifdefs for DRI to be DRI && !APPLE Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/dri_common.c
|
234286c0f8b7d30ed49223c648d4c73c1a517ab3 |
|
22-Apr-2010 |
Jesse Barnes <jbarnes@virtuousgeek.org> |
DRI2: add config query extension Add a new DRI2 configuration query extension. Allows for DRI2 client code to query for common DRI2 configuration options.
/external/mesa3d/src/glx/dri_common.c
|
115203281cf791221f586f03c14cfe4e0a44dd7a |
|
02-Apr-2010 |
Jeremy Huddleston <jeremyhu@apple.com> |
Revert accidental commits from the xquartz tree This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc. This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1. This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787. This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890. This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b. This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b. This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae. This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
/external/mesa3d/src/glx/dri_common.c
|
23215ef4d60a86d9f3b3fdc08e3fdadc59e98890 |
|
01-Apr-2010 |
Jeremy Huddleston <jeremyhu@apple.com> |
apple: Change ifdefs for DRI to be DRI && !APPLE Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/dri_common.c
|
6e8897ff9f90601ebf6eed500ad942c11b54d1f7 |
|
09-Feb-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
Retire miniglx and move the actual glx code up to src/glx
/external/mesa3d/src/glx/dri_common.c
|