From e89255b0a5d5b5ce4a6b6d6a8203d68742202666 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 31 Jul 2019 18:12:00 -0700 Subject: [PATCH] freedreno/a5xx: add fd5_emit_init_screen() Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 5 +++++ src/gallium/drivers/freedreno/a5xx/fd5_emit.h | 1 + src/gallium/drivers/freedreno/a5xx/fd5_screen.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c index 67ec23e..ab375c4 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c @@ -1120,6 +1120,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) { struct fd_context *ctx = fd_context(pctx); diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.h b/src/gallium/drivers/freedreno/a5xx/fd5_emit.h index 70ac550..90a6f48 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 92e4a94..14f8ab7 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); } -- 2.7.4