summaryrefslogtreecommitdiff
path: root/src/glx/dri_common.h
AgeCommit message (Collapse)AuthorFilesLines
2012-07-11glx/dri2: Add support for GLX_ARB_create_context_robustnessIan Romanick1-1/+2
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>
2012-02-08dri: Add a CriticalErrorMessageF macro.Carl Worth1-0/+2
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>
2012-01-02glx/dri: Add utility function dri2_convert_glx_attribsIan Romanick1-0/+6
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>
2010-09-08glx: Drop broken drawable garbage collectionKristian Høgsberg1-0/+3
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.
2010-07-28glx: Move bind and unbind to context vtableKristian Høgsberg1-0/+3
2010-07-28glx: Rename __GLcontextModes to struct glx_configKristian Høgsberg1-3/+3
With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before.
2010-07-21glx: Move last few dri_interface.h types out of glxclient.h and drop includeKristian Høgsberg1-0/+2
2010-07-19glx: Move DRI CopySubBuffer extension to DRI1 codeKristian Høgsberg1-3/+0
We do this in the X server for DRI2.
2010-07-19glx: Move driver_configs to DRI screen privatesKristian Høgsberg1-0/+2
2010-07-19glx: Move DRI1 specific extensions and code to DRI1 screen privateKristian Høgsberg1-2/+0
2010-07-19glx: Move DRI2 extensions to DRI2 screen privateKristian Høgsberg1-2/+0
2010-07-19glx: Add screen privates for dri drivers and moved some fields thereKristian Høgsberg1-3/+6
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.
2010-02-09Retire miniglx and move the actual glx code up to src/glxKristian Høgsberg1-0/+63