summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_context.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-02-25 05:32:16 +0000
committerAlyssa Rosenzweig <[email protected]>2019-03-04 04:58:15 +0000
commit59c9623d0a75d5201ad48351af26aad1bc0b7073 (patch)
tree9010f37a429bbe97d2f46ec6586edc4023beadf0 /src/gallium/drivers/panfrost/pan_context.h
parent4eec3a2a3652317f8e0fa97e0730c297bde8241a (diff)
panfrost: Import job data structures from v3d
At the moment, Panfrost state is ad hoc, which creates issues for FBOs. This commit imports the skeleton of the v3d_job structure as panfrost_job, in preparation for refactors to organize this state. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h
index 48cce72a303..06c8e69bbe9 100644
--- a/src/gallium/drivers/panfrost/pan_context.h
+++ b/src/gallium/drivers/panfrost/pan_context.h
@@ -30,6 +30,7 @@
#include <sys/mman.h>
#include <assert.h>
#include "pan_resource.h"
+#include "pan_job.h"
#include "pipe/p_compiler.h"
#include "pipe/p_config.h"
@@ -39,6 +40,7 @@
#include "pipe/p_screen.h"
#include "pipe/p_state.h"
#include "util/u_blitter.h"
+#include "util/hash_table.h"
/* Forward declare to avoid extra header dep */
struct prim_convert_context;
@@ -95,6 +97,10 @@ struct panfrost_context {
/* Gallium context */
struct pipe_context base;
+ /* Bound job and map of panfrost_job_key to jobs */
+ struct panfrost_job *job;
+ struct hash_table *jobs;
+
/* Bit mask for supported PIPE_DRAW for this hardware */
unsigned draw_modes;