68bccc40f55aee7f4af8eb64b15a95f0b49d6a17 |
|
07-Aug-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
glx/dri: Initialize reset to __DRI_CTX_RESET_NO_NOTIFICATION. If the application has requested reset notification, then dri2_convert_glx_attribs will initialize this to the correct value. Otherwise, it's supposed to initialize this to NO_NOTIFICATION, but doesn't when num_attribs == 0. (The consensus seems to be that we should make it do so, but that's more invasive, so I'm pushing this for now.) Fixes a regression since a8724d85f8cb2f0fb73b9c6c1f268f9084c6d473 where trying to run OilRush_x86 or apitrace heaven_x64 would result in: dri_util.c:221: dri2CreateContextAttribs: Assertion `!"Should not get here."' failed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53076 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/glx/drisw_glx.c
|
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/drisw_glx.c
|
2c778375a1356ffb8db1522bc3fc64c568c35cb1 |
|
23-Mar-2012 |
Dave Airlie <airlied@redhat.com> |
glx/drisw: avoid segfaults when we fail to get visual piglit glx-tfp segfaults on llvmpipe when run vs a 16-bit radeon screen, it now fails instead of segfaulting, much prettier. Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/glx/drisw_glx.c
|
26de5273acf1ebe6730b5e72b55b3bcceba167c6 |
|
04-Feb-2012 |
Carl Worth <cworth@cworth.org> |
dri: Emit a critical error if the swrast driver fails to load. Something has gone wrong if swrast is requested but cannot be loaded. The user really should be made aware of this, (and instructed to set LIBGL_DEBUG for more details). The wording of this error message is updated from "reverting to indirect rendering" to the more objectively descriptive "failed to load driver: swrast". The former wording makes assumptions about what the calling code will decide to do next, rather than simply describing what went wrong within the current function. The new wording is consistent with the critical errors recently added for hardware drivers that fail to load. Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
/external/mesa3d/src/glx/drisw_glx.c
|
2af17433b5b037af99198acfac567c57618286c3 |
|
03-Jan-2012 |
Adam Jackson <ajax@redhat.com> |
drisw: Fix drawable creation against non-default screens We don't want to match the visual against the default screen. If the drawable is on a non-default screen then the appropriate visual might not exist on the default screen. Conversely, if the same visual is available on multiple screens then simply selecting for the right VID is sufficient, since the server has promised that the same visual is compatible with multiple screens. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
296fe21ae5be838268e51fdd9a4a3009ab961265 |
|
01-Dec-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
glx/dri2: Implement glx_screen_vtable::create_context_attribs for DRISW contexts This also enables GLX_ARB_create_context and GLX_ARB_create_context_profile if the driver supports DRI_DRISW version 3 or greater. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/drisw_glx.c
|
4dbd13cb3f5aeff6ddc85fd091b4677369c19778 |
|
07-Dec-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
glx: Send DestroyContext protocol at the correct times Send the DestroyContext protocol immediately when glXDestroyContext is called, and never call it when glXFreeContextEXT is called. In both cases, either destroy the client-side structures or, if the context is current, set xid to None so that the client-side structures will be destroyed later. I believe this restores the behavior of the original SGI code. See src/glx/x11 around commit 5df82c8. The spec doesn't say anything about glXDestroyContext not really destroying imported contexts (it acts like glXFreeContextEXT instead), but that's what the original code did. Note that glXFreeContextEXT on a non-imported context does not destroy it either. Fixes the piglit test glx-free-context. NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/drisw_glx.c
|
c4a8c54c3bb31547cba57702ffea99293afef522 |
|
06-Dec-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
glx: Don't create a shared context if the other context isn't the same kind Each of the DRI, DRI2, and DRISW backends contain code like the following in their create-context routine: if (shareList) { pcp_shared = (struct dri2_context *) shareList; shared = pcp_shared->driContext; } This assumes that the glx_context *shareList is actually the correct derived type. However, if shareList was created as an indirect-rendering context, it will not be the expected type. As a result, shared will contain garbage. This garbage will be passed to the driver, and the driver will probably segfault. This can be observed with the following GLX code: ctx0 = glXCreateContext(dpy, visinfo, NULL, False); ctx1 = glXCreateContext(dpy, visinfo, ctx0, True); Create-context is the only case where this occurs. All other cases where a context is passed to the backend, it is the 'this' pointer (i.e., we got to the backend by call something from ctx->vtable). To work around this, check that the shareList->vtable->destroy method is the same as the destroy method of the expected type. We could also check that shareList->vtable matches the vtable or by adding a "tag" to glx_context to identify the derived type. NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/drisw_glx.c
|
5016b09f897dd9d93ee1fc86949e0c3d7bd3b36f |
|
17-Dec-2011 |
Marek Olšák <maraeo@gmail.com> |
drisw: remove unused variable
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
6d3d0ca9e9ef0d0a1e3ba0940f7127298e078a7d |
|
01-Nov-2011 |
Adam Jackson <ajax@redhat.com> |
drisw: Enable SGI_make_current_read for direct contexts Equivalent to glXMakeContextCurrent, which had better already work since we advertise GLX 1.3. Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/drisw_glx.c
|
55e763c86da1aa2042d50d190d797574d6fb6fa8 |
|
30-Aug-2011 |
nobled <nobled@dreamwidth.org> |
Enable GLX_EXT_texture_from_pixmap in software. Signed-off-by: nobled <nobled@dreamwidth.org> Signed-off-by: Stuart Abercrombie <sabercrombie@chromium.org> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
/external/mesa3d/src/glx/drisw_glx.c
|
cfec000e7514342fd51859906e173ba2d474a55c |
|
28-Jun-2011 |
Marc Pignat <marc@pignat.org> |
drisw: Fix 24bpp software rendering, take 2 This patch add the support for 24bpp in the dri/swrast implementation. See http://bugs.freedesktop.org/show_bug.cgi?id=23525 Signed-off-by: Marc Pignat <marc at pignat.org> Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/drisw_glx.c
|
5fe54df58f31e5d321f7cbd5b095eb8c2417deb1 |
|
27-Jun-2011 |
Marek Olšák <maraeo@gmail.com> |
Rename swrastg_dri to swrast_dri I prefer it this way and it has been suggested earlier by others too. Opinions?
/external/mesa3d/src/glx/drisw_glx.c
|
d44f821213d7ed67fed18d6ea6c34b61a665c89e |
|
28-Apr-2011 |
Adam Jackson <ajax@redhat.com> |
drisw: Remove cargo culting that breaks GLX 1.3 ctors Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/drisw_glx.c
|
559e4f8ebcb186b491d7d687ac43f22a62448fc1 |
|
15-Jun-2011 |
Jeremy Huddleston <jeremyhu@apple.com> |
glx: Allow a context-specific fallback for glXGetProcAddress In applegl, GLX advertises the same extensions provided by OpenGL.framework even if such extensions are not provided by glapi. This allows a client to get access to such API. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
5a6897ff0b62c6ec3ec49663a7e6a00550194bb9 |
|
29-Apr-2011 |
Adam Jackson <ajax@redhat.com> |
drisw: Namespace better for ease of navigation Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/drisw_glx.c
|
b24f291e429b94ca7de74f8b32279e3a0375cd9c |
|
28-Apr-2011 |
Adam Jackson <ajax@redhat.com> |
drisw: dead store removal Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/drisw_glx.c
|
0b47d59e5be0fb5eb0277f02646914f4a55d35d5 |
|
30-Jan-2011 |
Henri Verbeet <hverbeet@gmail.com> |
glx: Fix leaks in DRISW screen creation error paths. Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
e3a0e468bc67e4169406bb4c96b5ab483dc48a28 |
|
04-Aug-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Fix use after free in drisw error path
/external/mesa3d/src/glx/drisw_glx.c
|
e71c44cedd6d22930bf873504d89faf68d93e1cc |
|
04-Aug-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: We no longer need screen extensions for drisw https://bugs.freedesktop.org/show_bug.cgi?id=29177
/external/mesa3d/src/glx/drisw_glx.c
|
c491e585e43d48a2aeec96ccc4008da6c443fb42 |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move bind and unbind to context vtable
/external/mesa3d/src/glx/drisw_glx.c
|
c356f5867f2c1fad7155df538b9affa8dbdcf869 |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
/external/mesa3d/src/glx/drisw_glx.c
|
66fc35cde9ed68a09920ad6a28de794dd1d3aa8c |
|
28-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Rename __GLXscreenConfigs to struct glx_screen Because double underscores in private type names is painful.
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064 |
|
25-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Drop duplicate psc field in drisw context struct Causing a crash in drisw MakeCurrent.
/external/mesa3d/src/glx/drisw_glx.c
|
d77bb8e059ecfed9b714301fc31b093c6026c7bc |
|
24-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Don't destroy context with XID 0 We use XID 0 to indicate the context has already been destroyed, but it's currently bound.
/external/mesa3d/src/glx/drisw_glx.c
|
6393a33944ec9983426cecd5f6c9f05ac089e1ae |
|
24-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: zero out drawable structs after allocation
/external/mesa3d/src/glx/drisw_glx.c
|
6ec39db726beead21d97bf64ddbe1f0b2d2d6ca1 |
|
23-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Refactor and simplify context creation This lets us better separate context creation between the different backends.
/external/mesa3d/src/glx/drisw_glx.c
|
c796bb0cc3fde409545bff320540ddf5c029e513 |
|
23-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move context destroy to context vtable
/external/mesa3d/src/glx/drisw_glx.c
|
7b7845a076c933e096ac511b4184141ba194449a |
|
23-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move WaitGL, WaitX, UseXFont to context vtable functions
/external/mesa3d/src/glx/drisw_glx.c
|
31819830b66a49f1b62e09090cc65aefc657aeb8 |
|
23-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Allocate the __GLXcontext in the DRI drivers
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|
bab13969d8bf3ff9259524c3f4ab96d81485ccef |
|
20-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move driver_configs to DRI screen privates
/external/mesa3d/src/glx/drisw_glx.c
|
271c3c3a90ccfd01da9d7ac7fa451518f4e6a27c |
|
20-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move __DRIdrawable pointers to DRI drawable privates
/external/mesa3d/src/glx/drisw_glx.c
|
70887d517290060a80c7f5dd8c0ea0c834c4d91e |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Move __driScreen into the dri screen privates
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.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/drisw_glx.c
|
a296d96de45d38a6ed0b3c817334d443facc169b |
|
19-Jul-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
glx: Rename various DRI structs away from obnoxious __GLXfooRec convention Enough is enough.
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.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/drisw_glx.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/drisw_glx.c
|
a24fc90703f62d286031cb2ee8f625ef728243fd |
|
28-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
drisw: probably better hack for stride and some comments
/external/mesa3d/src/glx/drisw_glx.c
|
a7109625aa221eb765cf8e0ee6abfe617f9515ba |
|
27-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
drisw: update comment
/external/mesa3d/src/glx/drisw_glx.c
|
3bfa23317c6b1b52ec637a03a0b623228ffc95ef |
|
27-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
drisw: add comment to libGL about stride
/external/mesa3d/src/glx/drisw_glx.c
|
f4e561ce127cf484d7c76c29b8cd026c9ad5cebc |
|
27-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
drisw: make stride issue profound
/external/mesa3d/src/glx/drisw_glx.c
|
29ec84b0a80e1fe2e6f58f91ab63f2f9ebd012a6 |
|
27-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
glx: try swrastg_dri, if swrast_dri fails This needs a patch for xserver/glx also. An enviroment variable will be added at some point, it chould be for swrastg only or all gallium drivers.
/external/mesa3d/src/glx/drisw_glx.c
|
2b5a6e083c1e6e45757a2192721d8675309835c1 |
|
20-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
glx: minor cosmetic
/external/mesa3d/src/glx/drisw_glx.c
|
2d1641b1917309d6397a6c9c773b801eb83838f8 |
|
19-Mar-2010 |
George Sapountzis <gsapountzis@gmail.com> |
glx: swapBuffers prototype has changed
/external/mesa3d/src/glx/drisw_glx.c
|
ae7b3a632dd3f3b005459d77b66a77948260f716 |
|
06-Mar-2010 |
Brian Paul <brianp@vmware.com> |
glx: Move initialization of ext_list_first_time to where it's storage is allocated Move the initialization of ext_list_first_time from all of the DRI loader's CreateScreen routines, to where the storage for the screen config is allocated. It needs to get set in the screen-config even if DRI is forced off using LIBGL_ALWAYS_INDIRECT, so that psc->direct_support is initialized correctly, otherwise __glXExtensionBitIsEnabled() always returns FALSE Specifically, this causes a problem with an X server which advertises GLX<=1.2, and the GLX_SGIX_fbconfig extension. glXGetFBConfigFromVisualSGIX() uses __glXExtensionBitIsEnabled() to check if the GLX_SGIX_fbconfig extension is available, but that function won't return correct information because that data has never been initialized, because ext_list_first_time was never set... Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 96ab4d2b84178209ee59017458d9964b32b7e183)
/external/mesa3d/src/glx/drisw_glx.c
|
96ab4d2b84178209ee59017458d9964b32b7e183 |
|
01-Jul-2009 |
Jon TURNEY <jon.turney@dronecode.org.uk> |
glx: Move initialization of ext_list_first_time to where it's storage is allocated Move the initialization of ext_list_first_time from all of the DRI loader's CreateScreen routines, to where the storage for the screen config is allocated. It needs to get set in the screen-config even if DRI is forced off using LIBGL_ALWAYS_INDIRECT, so that psc->direct_support is initialized correctly, otherwise __glXExtensionBitIsEnabled() always returns FALSE Specifically, this causes a problem with an X server which advertises GLX<=1.2, and the GLX_SGIX_fbconfig extension. glXGetFBConfigFromVisualSGIX() uses __glXExtensionBitIsEnabled() to check if the GLX_SGIX_fbconfig extension is available, but that function won't return correct information because that data has never been initialized, because ext_list_first_time was never set... Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/drisw_glx.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/drisw_glx.c
|