From 308076fd55a44f8defedd80d75e256e51bdff0a2 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 25 Aug 2017 07:58:40 -0400 Subject: 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 --- src/gallium/drivers/freedreno/freedreno_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/freedreno/freedreno_context.c') 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; -- cgit v1.2.3