From ec0ec641d8ec381224d0fe3e392b68a944520d59 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 31 Jul 2019 17:58:56 -0700 Subject: [PATCH] freedreno/a4xx: add fd4_emit_init_screen() Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a4xx/fd4_emit.c | 5 +++++ src/gallium/drivers/freedreno/a4xx/fd4_emit.h | 1 + src/gallium/drivers/freedreno/a4xx/fd4_screen.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c index 6cf80e6a3f1..f670d4f8c4a 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c @@ -932,6 +932,11 @@ fd4_mem_to_mem(struct fd_ringbuffer *ring, struct pipe_resource *dst, } } +void +fd4_emit_init_screen(struct pipe_screen *pscreen) +{ +} + void fd4_emit_init(struct pipe_context *pctx) { diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h index a78d83c5ee6..52d3caddb01 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h +++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h @@ -101,6 +101,7 @@ void fd4_emit_state(struct fd_context *ctx, struct fd_ringbuffer *ring, void fd4_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring); +void fd4_emit_init_screen(struct pipe_screen *pscreen); void fd4_emit_init(struct pipe_context *pctx); static inline void diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c index 6e5e903f5d1..c775ebfd1fc 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_screen.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_screen.c @@ -29,6 +29,7 @@ #include "fd4_screen.h" #include "fd4_context.h" +#include "fd4_emit.h" #include "fd4_format.h" #include "ir3/ir3_compiler.h" @@ -110,4 +111,5 @@ fd4_screen_init(struct pipe_screen *pscreen) screen->compiler = ir3_compiler_create(screen->dev, screen->gpu_id); pscreen->context_create = fd4_context_create; pscreen->is_format_supported = fd4_screen_is_format_supported; + fd4_emit_init_screen(pscreen); } -- 2.30.2