diff options
author | Kristian Høgsberg Kristensen <krh@bitplanet.net> | 2016-05-23 22:49:51 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <krh@bitplanet.net> | 2016-05-25 09:41:44 -0700 |
commit | 85008db1d51f923113832394d7f8d6b1868be882 (patch) | |
tree | 1d033fbf1ecc53d8f0d0699fae9de52cc7965345 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | f036eea2cf3012b6b7f9e1c7b317dd78811a1a3a (diff) | |
download | external_mesa3d-85008db1d51f923113832394d7f8d6b1868be882.zip external_mesa3d-85008db1d51f923113832394d7f8d6b1868be882.tar.gz external_mesa3d-85008db1d51f923113832394d7f8d6b1868be882.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 5155475..4b22201 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -1704,6 +1704,8 @@ gen7_emit_urb_state(struct brw_context *brw, /* brw_reset.c */ extern GLenum brw_get_graphics_reset_status(struct gl_context *ctx); +void +brw_check_for_reset(struct brw_context *brw); /* brw_compute.c */ extern void |