From: Rob Clark Date: Thu, 1 Aug 2019 01:12:00 +0000 (-0700) Subject: freedreno/a5xx: add fd5_emit_init_screen() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e89255b0a5d5b5ce4a6b6d6a8203d68742202666;p=mesa.git freedreno/a5xx: add fd5_emit_init_screen() Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c index 67ec23ebbbe..ab375c4c01e 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c @@ -1119,6 +1119,11 @@ fd5_mem_to_mem(struct fd_ringbuffer *ring, struct pipe_resource *dst, } } +void +fd5_emit_init_screen(struct pipe_screen *pscreen) +{ +} + void fd5_emit_init(struct pipe_context *pctx) { diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.h b/src/gallium/drivers/freedreno/a5xx/fd5_emit.h index 70ac550fc1d..90a6f48405c 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.h +++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.h @@ -198,6 +198,7 @@ void fd5_emit_cs_state(struct fd_context *ctx, struct fd_ringbuffer *ring, void fd5_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring); +void fd5_emit_init_screen(struct pipe_screen *pscreen); void fd5_emit_init(struct pipe_context *pctx); static inline void diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c index 92e4a94ff0e..14f8ab77221 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_screen.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_screen.c @@ -31,6 +31,7 @@ #include "fd5_blitter.h" #include "fd5_context.h" #include "fd5_format.h" +#include "fd5_emit.h" #include "fd5_resource.h" #include "ir3/ir3_compiler.h" @@ -140,4 +141,6 @@ fd5_screen_init(struct pipe_screen *pscreen) screen->perfcntr_groups = a5xx_perfcntr_groups; screen->num_perfcntr_groups = a5xx_num_perfcntr_groups; } + + fd5_emit_init_screen(pscreen); }