summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-05-06 12:34:25 -0500
committerNicolai Hähnle <[email protected]>2016-06-01 22:52:18 +0200
commit46ad3561be0b820333a515941bfb220591402573 (patch)
tree28907e15d28fb59257bd51427cb31c665861648c /src/gallium/drivers/radeon
parent92d5d97b103542f300e3b68f872566adef0af7e6 (diff)
radeon/winsys: add cs_check_space
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index 792bacb5499..e8e429abc11 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -674,6 +674,15 @@ struct radeon_winsys {
boolean (*cs_validate)(struct radeon_winsys_cs *cs);
/**
+ * Check whether the given number of dwords is available in the IB.
+ * Optionally chain a new chunk of the IB if necessary and supported.
+ *
+ * \param cs A command stream.
+ * \param dw Number of CS dwords requested by the caller.
+ */
+ bool (*cs_check_space)(struct radeon_winsys_cs *cs, unsigned dw);
+
+ /**
* Return TRUE if there is enough memory in VRAM and GTT for the buffers
* added so far.
*