summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMaciej Cencora <m.cencora@gmail.com>2010-02-06 18:25:36 +0100
committerAlex Deucher <alexdeucher@gmail.com>2010-03-08 11:49:01 -0500
commit62b3321d7d9774ed235bc3d328b6a0f5da153dcf (patch)
treee7057326fa042724bc3c94985df8b1683e450d7e /src/mesa
parent8ccd83ab921380953a0e5cebd941444f85c23ed1 (diff)
r300: reset bos when validating buffers during blit
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_blit.c b/src/mesa/drivers/dri/r300/r300_blit.c
index 2bc761bc20..f9c085e283 100644
--- a/src/mesa/drivers/dri/r300/r300_blit.c
+++ b/src/mesa/drivers/dri/r300/r300_blit.c
@@ -381,6 +381,9 @@ static GLboolean validate_buffers(struct r300_context *r300,
struct radeon_bo *dst_bo)
{
int ret;
+
+ radeon_cs_space_reset_bos(r300->radeon.cmdbuf.cs);
+
ret = radeon_cs_space_check_with_bo(r300->radeon.cmdbuf.cs,
src_bo, RADEON_GEM_DOMAIN_VRAM, 0);
if (ret)