r300: reset bos when validating buffers during blit
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 6 Feb 2010 17:25:36 +0000 (18:25 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Sun, 7 Mar 2010 11:04:44 +0000 (12:04 +0100)
src/mesa/drivers/dri/r300/r300_blit.c

index 2bc761bc20808b04b793a56586626671ffa44b90..f9c085e2832f3e0460a985839cc266271b04acc3 100644 (file)
@@ -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)