xserver-multidpi/glx
Ian Romanick cef0b808d3 glx: Implement GLX_ARB_create_context_profile
Most of the infrastructure was already in place.  This just adds:

    * Validate values specified with the GLX_CONTEXT_PROFILE_MASK_ARB
      attribute.

    * Select a DRI2 "api" based on the setting of
      GLX_CONTEXT_PROFILE_MASK_ARB.

    * Enable GLX_ARB_create_context_profile extension.

This change assumes that any DRI2 driver can handle (possibly by saying "no")
seeing an API setting other than __DRI_API_OPENGL.  This allows enabling this
extension any time GLX_ARB_create_context is enabled.

Also, the validation code in __glXDisp_CreateContextAttribsARB is structured
in a very verbose manner (using a switch-statement) to ease the addition of
GLX_EXT_create_context_es2_profile.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2012-07-05 11:44:13 -07:00
..
clientinfo.c glx: Implement GLX SetClientInfo2ARB protocol 2012-07-05 11:44:09 -07:00
createcontext.c glx: Implement GLX_ARB_create_context_profile 2012-07-05 11:44:13 -07:00
dispatch.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
extension_string.c glx: Add tracking for GLX_ARB_create_context and GLX_ARB_create_context_profile 2012-05-23 13:08:12 -07:00
extension_string.h glx: Add tracking for GLX_ARB_create_context and GLX_ARB_create_context_profile 2012-05-23 13:08:12 -07:00
glapi_gentable.c glapi: Correct size of allocated _glapi_table struct 2012-04-23 20:20:42 -07:00
glapi.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glapi.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glapitable.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glprocs.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glthread.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glthread.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxbyteorder.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxcmds.c glx: Make several functions available outside the glxcmds.c compilation unit 2012-05-23 13:08:12 -07:00
glxcmdsswap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxcontext.h glx: Make several functions available outside the glxcmds.c compilation unit 2012-05-23 13:08:12 -07:00
glxdrawable.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxdri.c Merge remote-tracking branch 'idr/GLX_ARB_create_context' 2012-06-14 13:01:17 -07:00
glxdri2.c glx: Implement GLX_ARB_create_context_profile 2012-07-05 11:44:13 -07:00
glxdricommon.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxdricommon.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxdriswrast.c glx: Extend __GLXscreen::createContext to take attributes 2012-05-23 13:07:51 -07:00
glxext.c glx: Use one function to add a context to all global tables 2012-05-23 13:08:12 -07:00
glxext.h glx: Use one function to add a context to all global tables 2012-05-23 13:08:12 -07:00
glxscreens.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
glxscreens.h Merge remote-tracking branch 'idr/GLX_ARB_create_context' 2012-06-14 13:01:17 -07:00
glxserver.h glx: Don't request prototypes for GL extension functions 2012-07-05 10:08:04 -07:00
glxutil.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_dispatch_swap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_dispatch.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_dispatch.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_program.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_reqsize.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_reqsize.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_size_get.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_size_get.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_size.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_table.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_table.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_texture_compression.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_util.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
indirect_util.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Makefile.am glx/glapioffsets.h is no longer part of the build, remove it 2011-12-27 14:02:39 -08:00
render2.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
render2swap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
renderpix.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
renderpixswap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rensize.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
single2.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
single2swap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
singlepix.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
singlepixswap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
singlesize.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
singlesize.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
swap_interval.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
unpack.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xfont.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00