diff options
author | Ian Romanick <[email protected]> | 2012-09-10 17:11:33 +0300 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-11-07 17:31:16 -0800 |
commit | 17c94de33baf66ad5c264b7a046394c651bc6126 (patch) | |
tree | 383fc825320a55bc38e559e8c51364cfb2ca5e69 /src/mesa/drivers/dri/nouveau | |
parent | 916bc4491a2a7607bf2bd22aa1a5a537285c89c9 (diff) |
mesa/dri: Add basic plumbing for GLX_ARB_robustness reset notification strategy
No drivers advertise the DRI2 extension yet, so no driver should ever
see a value other than false for notify_reset.
The changes in nouveau use tabs because nouveau seems to have it's own
indentation rules.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index 0b648acb46f..a7f14b518d1 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -53,6 +53,7 @@ nouveau_context_create(gl_api api, unsigned major_version, unsigned minor_version, uint32_t flags, + bool notify_reset, unsigned *error, void *share_ctx) { @@ -65,6 +66,11 @@ nouveau_context_create(gl_api api, */ (void) flags; + if (notify_reset) { + *error = __DRI_CTX_ERROR_UNKNOWN_ATTRIBUTE; + return false; + } + ctx = screen->driver->context_create(screen, visual, share_ctx); if (!ctx) { *error = __DRI_CTX_ERROR_NO_MEMORY; diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.h b/src/mesa/drivers/dri/nouveau/nouveau_context.h index 2bcc1e12782..07d9605b886 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.h +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.h @@ -111,7 +111,8 @@ GLboolean nouveau_context_create(gl_api api, const struct gl_config *visual, __DRIcontext *dri_ctx, unsigned major_version, unsigned minor_version, - uint32_t flags, unsigned *error, void *share_ctx); + uint32_t flags, bool notify_reset, unsigned *error, + void *share_ctx); GLboolean nouveau_context_init(struct gl_context *ctx, struct nouveau_screen *screen, |