summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-03-25 17:02:32 +1000
committerDave Airlie <[email protected]>2009-03-26 13:24:21 +1000
commite757bf964f4fd9ddbaa23ebaa47f743725aaf2c5 (patch)
tree63447a741288154bb7db94c79fd65f78c90558a1 /src/mesa/drivers/dri/r300
parent258686a973d7aef4bf956f540e99e65dc5bbee9c (diff)
r300: check buffer sizes in non-tcl case + set correct VRAM limits
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/r300_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c
index 402d2d76388..829d088033a 100644
--- a/src/mesa/drivers/dri/r300/r300_render.c
+++ b/src/mesa/drivers/dri/r300/r300_render.c
@@ -490,6 +490,9 @@ static GLboolean r300RunNonTCLRender(GLcontext * ctx,
if (!(rmesa->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL))
return GL_TRUE;
+ if (!r300ValidateBuffers(ctx))
+ return GL_TRUE;
+
return r300RunRender(ctx, stage);
}