freedreno/a3xx: add fd3_emit_init_screen()
authorRob Clark <robdclark@chromium.org>
Thu, 1 Aug 2019 01:09:26 +0000 (18:09 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 13 Aug 2019 15:11:25 +0000 (08:11 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a3xx/fd3_emit.h
src/gallium/drivers/freedreno/a3xx/fd3_screen.c

index 568978a8a7b8f499f3fcd8dfa4a5638d8d2cfe0a..7ee4487194dd2ff3142f1daf5b0ae33d322d2e26 100644 (file)
@@ -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)
 {
index ece4dabadc25088bc9b0caf31d5262a9c532df89..88a3692efbec5e32a83d9d0987ce6069d572a049 100644 (file)
@@ -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
index 03fee1001ddd7b34c43d0ba23af5389d7b670967..1c059104b59e26c47abb6115b88ef81f60ddf8fb 100644 (file)
@@ -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)