diff options
author | Rob Clark <[email protected]> | 2017-08-23 14:39:55 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-19 16:36:10 -0500 |
commit | 0015217c1eeb3743785ae5e33d004ef49dba3fa6 (patch) | |
tree | b6db81addc04082097c9862b3d06067975b429db /src/mesa/state_tracker | |
parent | 85789831b487c08eb4817fb902efc2e6b614d9ac (diff) |
gallium: plumb context priority through to driver
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Andres Rodriguez <[email protected]>
Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 380b05c53f5..d6aa3e7962c 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -880,6 +880,11 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi, if (attribs->flags & ST_CONTEXT_FLAG_NO_ERROR) no_error = true; + if (attribs->flags & ST_CONTEXT_FLAG_LOW_PRIORITY) + ctx_flags |= PIPE_CONTEXT_LOW_PRIORITY; + else if (attribs->flags & ST_CONTEXT_FLAG_HIGH_PRIORITY) + ctx_flags |= PIPE_CONTEXT_HIGH_PRIORITY; + pipe = smapi->screen->context_create(smapi->screen, NULL, ctx_flags); if (!pipe) { *error = ST_CONTEXT_ERROR_NO_MEMORY; |