From 1fdeef5e4a11f0590f443b805b53be842f745018 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 7 Jul 2020 17:23:09 -0400 Subject: [PATCH] panfrost: Move scoreboarding routines to common Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/Makefile.sources | 1 - src/gallium/drivers/panfrost/meson.build | 1 - src/panfrost/Makefile.sources | 2 ++ src/panfrost/encoder/meson.build | 1 + .../drivers/panfrost => panfrost/encoder}/pan_scoreboard.c | 7 +++---- .../drivers/panfrost => panfrost/encoder}/pan_scoreboard.h | 3 +++ 6 files changed, 9 insertions(+), 6 deletions(-) rename src/{gallium/drivers/panfrost => panfrost/encoder}/pan_scoreboard.c (98%) rename src/{gallium/drivers/panfrost => panfrost/encoder}/pan_scoreboard.h (97%) diff --git a/src/gallium/drivers/panfrost/Makefile.sources b/src/gallium/drivers/panfrost/Makefile.sources index 4688754672c..3ce48b2c50b 100644 --- a/src/gallium/drivers/panfrost/Makefile.sources +++ b/src/gallium/drivers/panfrost/Makefile.sources @@ -22,7 +22,6 @@ C_SOURCES := \ pan_public.h \ pan_resource.c \ pan_resource.h \ - pan_scoreboard.c \ pan_screen.c \ pan_screen.h \ pan_sfbd.c \ diff --git a/src/gallium/drivers/panfrost/meson.build b/src/gallium/drivers/panfrost/meson.build index 154d05a7344..f71a4cc2db5 100644 --- a/src/gallium/drivers/panfrost/meson.build +++ b/src/gallium/drivers/panfrost/meson.build @@ -38,7 +38,6 @@ files_panfrost = files( 'pan_cmdstream.c', 'pan_compute.c', 'pan_fragment.c', - 'pan_scoreboard.c', 'pan_sfbd.c', 'pan_mfbd.c', ) diff --git a/src/panfrost/Makefile.sources b/src/panfrost/Makefile.sources index d085b763e3e..4efd694b3a7 100644 --- a/src/panfrost/Makefile.sources +++ b/src/panfrost/Makefile.sources @@ -33,6 +33,8 @@ encoder_FILES := \ encoder/pan_pool.h \ encoder/pan_props.c \ encoder/pan_sampler.c \ + encoder/pan_scoreboard.c \ + encoder/pan_scoreboard.h \ encoder/pan_tiler.c \ encoder/pan_texture.c \ encoder/pan_scratch.c \ diff --git a/src/panfrost/encoder/meson.build b/src/panfrost/encoder/meson.build index 2e5baea4fc5..e7b28e16338 100644 --- a/src/panfrost/encoder/meson.build +++ b/src/panfrost/encoder/meson.build @@ -30,6 +30,7 @@ libpanfrost_encoder_files = files( 'pan_sampler.c', 'pan_tiler.c', 'pan_texture.c', + 'pan_scoreboard.c', 'pan_scratch.c', 'pan_pool.c', 'pan_props.c', diff --git a/src/gallium/drivers/panfrost/pan_scoreboard.c b/src/panfrost/encoder/pan_scoreboard.c similarity index 98% rename from src/gallium/drivers/panfrost/pan_scoreboard.c rename to src/panfrost/encoder/pan_scoreboard.c index d2cc0568789..c72c9a37c3a 100644 --- a/src/gallium/drivers/panfrost/pan_scoreboard.c +++ b/src/panfrost/encoder/pan_scoreboard.c @@ -22,11 +22,10 @@ * */ -#include "pan_context.h" -#include "pan_job.h" -#include "pan_pool.h" +#include +#include "pan_scoreboard.h" +#include "pan_device.h" #include "panfrost-quirks.h" -#include "util/bitset.h" /* * There are various types of Mali jobs: diff --git a/src/gallium/drivers/panfrost/pan_scoreboard.h b/src/panfrost/encoder/pan_scoreboard.h similarity index 97% rename from src/gallium/drivers/panfrost/pan_scoreboard.h rename to src/panfrost/encoder/pan_scoreboard.h index 329635f095a..71667d4b5de 100644 --- a/src/gallium/drivers/panfrost/pan_scoreboard.h +++ b/src/panfrost/encoder/pan_scoreboard.h @@ -27,6 +27,9 @@ #ifndef __PAN_SCOREBOARD_H__ #define __PAN_SCOREBOARD_H__ +#include "panfrost-job.h" +#include "pan_pool.h" + struct pan_scoreboard { /* The first job in the batch */ mali_ptr first_job; -- 2.30.2