From d256e3f34a1266b28a5803283217abacb1d56f24 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 31 Jul 2019 18:09:26 -0700 Subject: [PATCH] freedreno/a3xx: add fd3_emit_init_screen() Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a3xx/fd3_emit.c | 5 +++++ src/gallium/drivers/freedreno/a3xx/fd3_emit.h | 1 + src/gallium/drivers/freedreno/a3xx/fd3_screen.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c index 568978a8a7b..7ee4487194d 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c @@ -945,6 +945,11 @@ fd3_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring) fd_hw_query_enable(batch, ring); } +void +fd3_emit_init_screen(struct pipe_screen *pscreen) +{ +} + void fd3_emit_init(struct pipe_context *pctx) { diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h index ece4dabadc2..88a3692efbe 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h @@ -92,6 +92,7 @@ void fd3_emit_state(struct fd_context *ctx, struct fd_ringbuffer *ring, void fd3_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring); +void fd3_emit_init_screen(struct pipe_screen *pscreen); void fd3_emit_init(struct pipe_context *pctx); static inline void diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_screen.c b/src/gallium/drivers/freedreno/a3xx/fd3_screen.c index 03fee1001dd..1c059104b59 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_screen.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_screen.c @@ -30,6 +30,7 @@ #include "fd3_screen.h" #include "fd3_context.h" #include "fd3_format.h" +#include "fd3_emit.h" #include "fd3_resource.h" #include "ir3/ir3_compiler.h" @@ -107,6 +108,7 @@ fd3_screen_init(struct pipe_screen *pscreen) screen->compiler = ir3_compiler_create(screen->dev, screen->gpu_id); pscreen->context_create = fd3_context_create; pscreen->is_format_supported = fd3_screen_is_format_supported; + fd3_emit_init_screen(pscreen); screen->setup_slices = fd3_setup_slices; if (fd_mesa_debug & FD_DBG_TTILE)