From: Rob Clark Date: Thu, 1 Aug 2019 00:58:56 +0000 (-0700) Subject: freedreno/a4xx: add fd4_emit_init_screen() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec0ec641d8ec381224d0fe3e392b68a944520d59;p=mesa.git freedreno/a4xx: add fd4_emit_init_screen() Signed-off-by: Rob Clark --- 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); }