glx: Validate the GLX_RENDER_TYPE value
authorTomasz Lis <tomasz.lis@intel.com>
Thu, 18 Jul 2013 21:19:38 +0000 (14:19 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Jul 2013 23:03:42 +0000 (16:03 -0700)
commit2eed9ff2fb5b218b7b274d2989b0dbbe5fcfedef
treec3b7db63922ed8d7d51783b27f240cad3045c46f
parent27c8aa5cfbcf6f2ad21564dfcdabbe747c277cab
glx: Validate the GLX_RENDER_TYPE value

Correctly handle the value of renderType in GLX context.  In case of the
value being incorrect, context creation fails.

v2 (idr): indirect_create_context is just a memory allocator, so don't
validate the GLX_RENDER_TYPE there.  Fixes regressions in several
GLX_ARB_create_context piglit tests.

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2_glx.c
src/glx/dri_glx.c
src/glx/drisw_glx.c
src/glx/glxclient.h
src/glx/glxcmds.c
src/glx/indirect_glx.c
src/mesa/drivers/x11/fakeglx.c