i965: Enable GL_KHR_robustness
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Tue, 24 May 2016 05:49:51 +0000 (22:49 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 25 May 2016 16:41:44 +0000 (09:41 -0700)
commit85008db1d51f923113832394d7f8d6b1868be882
tree1d033fbf1ecc53d8f0d0699fae9de52cc7965345
parentf036eea2cf3012b6b7f9e1c7b317dd78811a1a3a
i965: Enable GL_KHR_robustness

GL_KHR_robustness adds the GL_CONTEXT_LOST error and five new entry
points that we already implement.  This patch adds a new dispatch table
that returns GL_CONTEXT_LOST from all entry points and implements the
GL_LOSE_CONTEXT_ON_RESET strategy by setting that table when we learn
that we've lost the context.

With the GL_CONTEXT_LOST reporting in place and dispatch for the new
entry points we can turn on GL_KHR_robustness.

Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
17 files changed:
docs/GL3.txt
docs/relnotes/11.3.0.html
src/mapi/glapi/gen/KHR_robustness.xml [new file with mode: 0644]
src/mapi/glapi/gen/KHR_robustness_es.xml [new file with mode: 0644]
src/mapi/glapi/gen/Makefile.am
src/mapi/glapi/gen/es_EXT.xml
src/mapi/glapi/gen/gl_API.xml
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_reset.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/main/context.c
src/mesa/main/context.h
src/mesa/main/extensions_table.h
src/mesa/main/getstring.c
src/mesa/main/mtypes.h
src/mesa/main/tests/dispatch_sanity.cpp