summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-04-05 17:38:38 +0200
committerBas Nieuwenhuizen <[email protected]>2016-04-19 18:10:31 +0200
commite56514f6316e48ee2231841d45695ff2b8f8b4f5 (patch)
treef883828a8897de706dc4ef494737360352dc2fcc /src/gallium/drivers/radeonsi/si_pipe.h
parentc3083d841e04e14d3682e55cf5d1004f5310e9d4 (diff)
radeonsi: update predicate condition for compute dispatches
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index ff60dcf67dc..5a5249cd8c6 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -421,6 +421,15 @@ si_set_atom_dirty(struct si_context *sctx,
sctx->dirty_atoms &= ~bit;
}
+static inline bool
+si_is_atom_dirty(struct si_context *sctx,
+ struct r600_atom *atom)
+{
+ unsigned bit = 1 << (atom->id - 1);
+
+ return sctx->dirty_atoms & bit;
+}
+
static inline void
si_mark_atom_dirty(struct si_context *sctx,
struct r600_atom *atom)