glx: Store the RENDER_TYPE in indirect rendering 56/7556/1
authorTomasz Lis <tomasz.lis@intel.com>
Wed, 17 Jul 2013 11:49:18 +0000 (13:49 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Jul 2013 23:03:42 +0000 (16:03 -0700)
commit27c8aa5cfbcf6f2ad21564dfcdabbe747c277cab
tree6a63a21b1770cebeeed83a94438f17083776b719
parent1c748dff6b13ff127c02790fa6078cc68eb42291
glx: Store the RENDER_TYPE in indirect rendering

v2 (idr): Open-code the check for GLX_RENDER_TYPE.
dri2_convert_glx_attribs can't be called from here because that function
only exists in direct-rendering builds.  Also add a stub version of
indirect_create_context_attribs to tests/fake_glx_screen.cpp to prevent
'make check' regressions.

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/create_context.c
src/glx/glxclient.h
src/glx/glxcmds.c
src/glx/indirect_glx.c
src/glx/tests/fake_glx_screen.cpp
src/glx/tests/fake_glx_screen.h