diff options
author | Marek Olšák <[email protected]> | 2018-11-02 16:08:26 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-11-09 14:55:04 -0500 |
commit | 4bec5025ac4baf616944f1eac64a50f1983de9b6 (patch) | |
tree | e0ec4bdbf666682775e179db0a2e779b68217aa3 /src/mesa | |
parent | 9dc776f3f2913df9e0ed93619c2458bda752d43b (diff) |
gallium: add PIPE_CONTEXT_LOSE_CONTEXT_ON_RESET
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index ceb48dd4903..690d5bc2313 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -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; |