freedreno/a4xx: add fd4_emit_init_screen()
authorRob Clark <robdclark@chromium.org>
Thu, 1 Aug 2019 00:58:56 +0000 (17:58 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 13 Aug 2019 15:08:07 +0000 (08:08 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.h
src/gallium/drivers/freedreno/a4xx/fd4_screen.c

index 6cf80e6a3f1bf2d3cdc326a194f766b48f25bb6b..f670d4f8c4aaf370145774683db51a386532986b 100644 (file)
@@ -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)
 {
index a78d83c5ee664d584748cec9131074ef6bac88dc..52d3caddb010cacf9da7ed371a5ce7f5ff690069 100644 (file)
@@ -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
index 6e5e903f5d1888588de81e6eaa82811d07e9a3b6..c775ebfd1fc48c9fb8fbc30b05f2c5eda55bb895 100644 (file)
@@ -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);
 }