summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-05-06 12:42:05 -0500
committerNicolai Hähnle <[email protected]>2016-06-01 22:52:18 +0200
commitd6211a61b0c8cd81509cbbf0e75766eb4be30bed (patch)
treec8996d1c519e5fc6bf978e60a504c202956e3149 /src/gallium/drivers/r300/r300_render.c
parent46ad3561be0b820333a515941bfb220591402573 (diff)
gallium/radeon: use cs_check_space throughout
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 43860f3035c..ad0f4896172 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -215,7 +215,7 @@ static boolean r300_reserve_cs_dwords(struct r300_context *r300,
cs_dwords += r300_get_num_cs_end_dwords(r300);
/* Reserve requested CS space. */
- if (cs_dwords > (r300->cs->max_dw - r300->cs->cdw)) {
+ if (!r300->rws->cs_check_space(r300->cs, cs_dwords)) {
r300_flush(&r300->context, RADEON_FLUSH_ASYNC, NULL);
flushed = TRUE;
}