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:
parent
7ec6ee4057
commit
1fdeef5e4a
|
@ -22,7 +22,6 @@ C_SOURCES := \
|
||||||
pan_public.h \
|
pan_public.h \
|
||||||
pan_resource.c \
|
pan_resource.c \
|
||||||
pan_resource.h \
|
pan_resource.h \
|
||||||
pan_scoreboard.c \
|
|
||||||
pan_screen.c \
|
pan_screen.c \
|
||||||
pan_screen.h \
|
pan_screen.h \
|
||||||
pan_sfbd.c \
|
pan_sfbd.c \
|
||||||
|
|
|
@ -38,7 +38,6 @@ files_panfrost = files(
|
||||||
'pan_cmdstream.c',
|
'pan_cmdstream.c',
|
||||||
'pan_compute.c',
|
'pan_compute.c',
|
||||||
'pan_fragment.c',
|
'pan_fragment.c',
|
||||||
'pan_scoreboard.c',
|
|
||||||
'pan_sfbd.c',
|
'pan_sfbd.c',
|
||||||
'pan_mfbd.c',
|
'pan_mfbd.c',
|
||||||
)
|
)
|
||||||
|
|
|
@ -33,6 +33,8 @@ encoder_FILES := \
|
||||||
encoder/pan_pool.h \
|
encoder/pan_pool.h \
|
||||||
encoder/pan_props.c \
|
encoder/pan_props.c \
|
||||||
encoder/pan_sampler.c \
|
encoder/pan_sampler.c \
|
||||||
|
encoder/pan_scoreboard.c \
|
||||||
|
encoder/pan_scoreboard.h \
|
||||||
encoder/pan_tiler.c \
|
encoder/pan_tiler.c \
|
||||||
encoder/pan_texture.c \
|
encoder/pan_texture.c \
|
||||||
encoder/pan_scratch.c \
|
encoder/pan_scratch.c \
|
||||||
|
|
|
@ -30,6 +30,7 @@ libpanfrost_encoder_files = files(
|
||||||
'pan_sampler.c',
|
'pan_sampler.c',
|
||||||
'pan_tiler.c',
|
'pan_tiler.c',
|
||||||
'pan_texture.c',
|
'pan_texture.c',
|
||||||
|
'pan_scoreboard.c',
|
||||||
'pan_scratch.c',
|
'pan_scratch.c',
|
||||||
'pan_pool.c',
|
'pan_pool.c',
|
||||||
'pan_props.c',
|
'pan_props.c',
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pan_context.h"
|
#include <string.h>
|
||||||
#include "pan_job.h"
|
#include "pan_scoreboard.h"
|
||||||
#include "pan_pool.h"
|
#include "pan_device.h"
|
||||||
#include "panfrost-quirks.h"
|
#include "panfrost-quirks.h"
|
||||||
#include "util/bitset.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There are various types of Mali jobs:
|
* There are various types of Mali jobs:
|
|
@ -27,6 +27,9 @@
|
||||||
#ifndef __PAN_SCOREBOARD_H__
|
#ifndef __PAN_SCOREBOARD_H__
|
||||||
#define __PAN_SCOREBOARD_H__
|
#define __PAN_SCOREBOARD_H__
|
||||||
|
|
||||||
|
#include "panfrost-job.h"
|
||||||
|
#include "pan_pool.h"
|
||||||
|
|
||||||
struct pan_scoreboard {
|
struct pan_scoreboard {
|
||||||
/* The first job in the batch */
|
/* The first job in the batch */
|
||||||
mali_ptr first_job;
|
mali_ptr first_job;
|
Loading…
Reference in New Issue