aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-07-31 18:09:26 -0700
committerRob Clark <[email protected]>2019-08-13 08:11:25 -0700
commitd256e3f34a1266b28a5803283217abacb1d56f24 (patch)
treeec3ea1cc307fc1c4b3f0323962047e292b5934d9 /src/gallium/drivers/freedreno
parentb9d3f39728fbab614c3bfa5b972a8a312dfec2c4 (diff)
freedreno/a3xx: add fd3_emit_init_screen()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_emit.c5
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_emit.h1
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_screen.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c
index 568978a8a7b..7ee4487194d 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c
@@ -946,6 +946,11 @@ 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)
{
struct fd_context *ctx = fd_context(pctx);
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h
index ece4dabadc2..88a3692efbe 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h
@@ -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
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_screen.c b/src/gallium/drivers/freedreno/a3xx/fd3_screen.c
index 03fee1001dd..1c059104b59 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_screen.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_screen.c
@@ -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)