mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallium: add PIPE_CONTEXT_LOSE_CONTEXT_ON_RESET
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
9dc776f3f2
commit
4bec5025ac
2 changed files with 6 additions and 0 deletions
|
|
@ -401,6 +401,9 @@ enum pipe_flush_flags
|
|||
*/
|
||||
#define PIPE_CONTEXT_LOW_PRIORITY (1 << 5)
|
||||
|
||||
/** Stop execution if the device is reset. */
|
||||
#define PIPE_CONTEXT_LOSE_CONTEXT_ON_RESET (1 << 6)
|
||||
|
||||
/**
|
||||
* Flags for pipe_context::memory_barrier.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -888,6 +888,9 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
|
|||
else if (attribs->flags & ST_CONTEXT_FLAG_HIGH_PRIORITY)
|
||||
ctx_flags |= PIPE_CONTEXT_HIGH_PRIORITY;
|
||||
|
||||
if (attribs->flags & ST_CONTEXT_FLAG_RESET_NOTIFICATION_ENABLED)
|
||||
ctx_flags |= PIPE_CONTEXT_LOSE_CONTEXT_ON_RESET;
|
||||
|
||||
pipe = smapi->screen->context_create(smapi->screen, NULL, ctx_flags);
|
||||
if (!pipe) {
|
||||
*error = ST_CONTEXT_ERROR_NO_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue