summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_winsys.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-05-06 17:02:30 -0500
committerNicolai Hähnle <[email protected]>2016-05-17 15:28:39 -0500
commit0558564200466878f1a86e7a192d085b551079c4 (patch)
treea76323fc1a7d1b1a7494ecc63a2cbd5745dff0c7 /src/gallium/drivers/radeon/radeon_winsys.h
parent5e89b027b9ca761488b97fd41e1a3e7ec6137dff (diff)
gallium/radeon: add radeon_emitted to check for non-trivial IBs
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_winsys.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index e73fa14a17e..792bacb5499 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -775,6 +775,10 @@ struct radeon_winsys {
unsigned num_registers, uint32_t *out);
};
+static inline bool radeon_emitted(struct radeon_winsys_cs *cs, unsigned num_dw)
+{
+ return cs && cs->cdw > num_dw;
+}
static inline void radeon_emit(struct radeon_winsys_cs *cs, uint32_t value)
{