diff options
author | Rob Clark <[email protected]> | 2017-08-25 07:58:40 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-19 16:36:10 -0500 |
commit | 308076fd55a44f8defedd80d75e256e51bdff0a2 (patch) | |
tree | 7e55e1c676b4de519491cd2b4668e7897db56669 /src/gallium/drivers/freedreno/freedreno_context.c | |
parent | 805a72404c141454ae83f28cb982a4870732928f (diff) |
freedreno: add debug flag to force high priority context
Mainly for testing, FD_MESA_DEBUG=hiprio will force high priority
contexts.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 59e902956f0..0a2f02c5e97 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -263,7 +263,9 @@ fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen, int i; /* lower numerical value == higher priority: */ - if (flags & PIPE_CONTEXT_HIGH_PRIORITY) + if (fd_mesa_debug & FD_DBG_HIPRIO) + prio = 0; + else if (flags & PIPE_CONTEXT_HIGH_PRIORITY) prio = 0; else if (flags & PIPE_CONTEXT_LOW_PRIORITY) prio = 2; |