X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Ffreedreno%2Ffreedreno_context.c;h=59e902956f021c0fbfcb4308f4873892d3af9ff5;hb=805a72404c141454ae83f28cb982a4870732928f;hp=66088da8c7e6bc31e25d10bfbbd3de54fb8842cf;hpb=0015217c1eeb3743785ae5e33d004ef49dba3fa6;p=mesa.git diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 66088da8c7e..59e902956f0 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -259,10 +259,17 @@ fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen, { struct fd_screen *screen = fd_screen(pscreen); struct pipe_context *pctx; + unsigned prio = 1; int i; + /* lower numerical value == higher priority: */ + if (flags & PIPE_CONTEXT_HIGH_PRIORITY) + prio = 0; + else if (flags & PIPE_CONTEXT_LOW_PRIORITY) + prio = 2; + ctx->screen = screen; - ctx->pipe = fd_pipe_new(screen->dev, FD_PIPE_3D); + ctx->pipe = fd_pipe_new2(screen->dev, FD_PIPE_3D, prio); ctx->primtypes = primtypes; ctx->primtype_mask = 0;