diff options
author | Rob Clark <[email protected]> | 2019-07-31 18:20:52 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-08-13 08:11:26 -0700 |
commit | 684f4b584304ac32cf025067072e5d819b571d73 (patch) | |
tree | f34221c30a6ff6895679445f7745de45e453dd00 /src/gallium/drivers/freedreno/a6xx | |
parent | 566f2281c5f1057a0de9633fad3a91906355731e (diff) |
freedreno/a3xx-a6xx+ir3: move emit_const* to screen
These don't need to be in context, and we'll need them in screen in a
later patch. Plus it's a good cleanup.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a6xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_emit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c index fd2ceaa4730..f70890f3b1e 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c @@ -1333,14 +1333,15 @@ fd6_framebuffer_barrier(struct fd_context *ctx) void fd6_emit_init_screen(struct pipe_screen *pscreen) { + struct fd_screen *screen = fd_screen(pscreen); + screen->emit_const = fd6_emit_const; + screen->emit_const_bo = fd6_emit_const_bo; } void fd6_emit_init(struct pipe_context *pctx) { struct fd_context *ctx = fd_context(pctx); - ctx->emit_const = fd6_emit_const; - ctx->emit_const_bo = fd6_emit_const_bo; ctx->emit_ib = fd6_emit_ib; ctx->mem_to_mem = fd6_mem_to_mem; ctx->framebuffer_barrier = fd6_framebuffer_barrier; |