panfrost: Move scoreboarding routines to common

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5827>
This commit is contained in:
Alyssa Rosenzweig 2020-07-07 17:23:09 -04:00
parent 7ec6ee4057
commit 1fdeef5e4a
6 changed files with 9 additions and 6 deletions

View File

@ -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 \

View File

@ -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',
)

View File

@ -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 \

View File

@ -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',

View File

@ -22,11 +22,10 @@
*
*/
#include "pan_context.h"
#include "pan_job.h"
#include "pan_pool.h"
#include <string.h>
#include "pan_scoreboard.h"
#include "pan_device.h"
#include "panfrost-quirks.h"
#include "util/bitset.h"
/*
* There are various types of Mali jobs:

View File

@ -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;