aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a4xx
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-07-31 18:26:57 -0700
committerRob Clark <[email protected]>2019-08-13 08:11:26 -0700
commitc6fab232c85d04e8de80ce4e8753fb1516d69fcd (patch)
tree57b22d5f767138b02f90eb0fbef270bed7fec66e /src/gallium/drivers/freedreno/a4xx
parent684f4b584304ac32cf025067072e5d819b571d73 (diff)
freedreno/all: move more emit helpers to screen
framebuffer_barrier() still depends on the ctx, but the rest can move to screen. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx')
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_emit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
index bcd385d2bf3..76f15771abb 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
@@ -939,12 +939,11 @@ fd4_emit_init_screen(struct pipe_screen *pscreen)
screen->emit_const = fd4_emit_const;
screen->emit_const_bo = fd4_emit_const_bo;
+ screen->emit_ib = fd4_emit_ib;
+ screen->mem_to_mem = fd4_mem_to_mem;
}
void
fd4_emit_init(struct pipe_context *pctx)
{
- struct fd_context *ctx = fd_context(pctx);
- ctx->emit_ib = fd4_emit_ib;
- ctx->mem_to_mem = fd4_mem_to_mem;
}