aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-04 04:36:02 +0100
committerMarek Olšák <[email protected]>2010-12-05 05:47:10 +0100
commit6947e5254889b99bfba7104d15e9526a7bc1cdfa (patch)
tree05227949ee9464928136b0abccdbda628c69a6ce /src/gallium/drivers/r300/r300_blit.c
parentc1365606c5b89872af4a0931e20f5cb78875eea6 (diff)
r300g: cleanup winsys
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index c02a6924f52..9fc4910984b 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -230,7 +230,7 @@ static void r300_clear(struct pipe_context* pipe,
r300_get_num_cs_end_dwords(r300);
/* Reserve CS space. */
- if (dwords > (r300->cs->ndw - r300->cs->cdw)) {
+ if (dwords > (R300_MAX_CMDBUF_DWORDS - r300->cs->cdw)) {
r300->context.flush(&r300->context, 0, NULL);
}