freedreno/a2xx: add fd2_emit_init_screen()
authorRob Clark <robdclark@chromium.org>
Thu, 1 Aug 2019 01:01:07 +0000 (18:01 -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/a2xx/fd2_emit.c
src/gallium/drivers/freedreno/a2xx/fd2_emit.h
src/gallium/drivers/freedreno/a2xx/fd2_screen.c

index 03329dc959140035ce005fe8204665d93b880e4c..3ed7bb6e141624955a5edc9c44f909961780e484 100644 (file)
@@ -563,6 +563,11 @@ fd2_emit_restore(struct fd_context *ctx, struct fd_ringbuffer *ring)
                        A2XX_PA_CL_VTE_CNTL_VPORT_Z_OFFSET_ENA);
 }
 
+void
+fd2_emit_init_screen(struct pipe_screen *pscreen)
+{
+}
+
 void
 fd2_emit_init(struct pipe_context *pctx)
 {
index f1676532ad5aa71f25db3f53a3aaf382f96be021..50131708983cf4f93c9f614f2026c21bc583f9b6 100644 (file)
@@ -44,6 +44,7 @@ void fd2_emit_state_binning(struct fd_context *ctx, const enum fd_dirty_3d_state
 void fd2_emit_state(struct fd_context *ctx, const enum fd_dirty_3d_state dirty);
 void fd2_emit_restore(struct fd_context *ctx, struct fd_ringbuffer *ring);
 
+void fd2_emit_init_screen(struct pipe_screen *pscreen);
 void fd2_emit_init(struct pipe_context *pctx);
 
 static inline void
index 0c02c6a7e05a4234d22a78eb71a7c575668a7bf6..cd57af11ac59f6f00ac2857c1619007c5259b80d 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "fd2_screen.h"
 #include "fd2_context.h"
+#include "fd2_emit.h"
 #include "fd2_util.h"
 #include "fd2_resource.h"
 
@@ -125,4 +126,6 @@ fd2_screen_init(struct pipe_screen *pscreen)
                screen->perfcntr_groups = a2xx_perfcntr_groups;
                screen->num_perfcntr_groups = a2xx_num_perfcntr_groups;
        }
+
+       fd2_emit_init_screen(pscreen);
 }