From 85008db1d51f923113832394d7f8d6b1868be882 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Kristensen Date: Mon, 23 May 2016 22:49:51 -0700 Subject: i965: Enable GL_KHR_robustness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ian Romanick Acked-by: Ilia Mirkin --- src/mapi/glapi/gen/KHR_robustness.xml | 66 ++++++++++++++++++++++++++++++++ src/mapi/glapi/gen/KHR_robustness_es.xml | 63 ++++++++++++++++++++++++++++++ src/mapi/glapi/gen/Makefile.am | 2 + src/mapi/glapi/gen/es_EXT.xml | 2 + src/mapi/glapi/gen/gl_API.xml | 3 ++ 5 files changed, 136 insertions(+) create mode 100644 src/mapi/glapi/gen/KHR_robustness.xml create mode 100644 src/mapi/glapi/gen/KHR_robustness_es.xml (limited to 'src/mapi') diff --git a/src/mapi/glapi/gen/KHR_robustness.xml b/src/mapi/glapi/gen/KHR_robustness.xml new file mode 100644 index 00000000000..56bcfcc519a --- /dev/null +++ b/src/mapi/glapi/gen/KHR_robustness.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mapi/glapi/gen/KHR_robustness_es.xml b/src/mapi/glapi/gen/KHR_robustness_es.xml new file mode 100644 index 00000000000..84f6fd2cdb9 --- /dev/null +++ b/src/mapi/glapi/gen/KHR_robustness_es.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am index 0759819a4cd..c511de932eb 100644 --- a/src/mapi/glapi/gen/Makefile.am +++ b/src/mapi/glapi/gen/Makefile.am @@ -192,6 +192,8 @@ API_XML = \ INTEL_performance_query.xml \ KHR_debug.xml \ KHR_context_flush_control.xml \ + KHR_robustness.xml \ + KHR_robustness_es.xml \ KHR_texture_compression_astc.xml \ NV_conditional_render.xml \ NV_primitive_restart.xml \ diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml index ce4c4c49bed..6886dab2fd1 100644 --- a/src/mapi/glapi/gen/es_EXT.xml +++ b/src/mapi/glapi/gen/es_EXT.xml @@ -924,6 +924,8 @@ + + + + + -- cgit v1.2.3