radeon/r200/r600: reset bos when validating buffers during blit
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 8 Mar 2010 15:04:02 +0000 (10:04 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 8 Mar 2010 15:04:02 +0000 (10:04 -0500)
src/mesa/drivers/dri/r200/r200_blit.c
src/mesa/drivers/dri/r600/r600_blit.c
src/mesa/drivers/dri/radeon/radeon_blit.c

index b56327dad5f68ef7ae231147646c3ae8df4e3098..2c8b3aafe58c21b61172cc04165559313db7462a 100644 (file)
@@ -211,6 +211,9 @@ static GLboolean validate_buffers(struct r200_context *r200,
                                   struct radeon_bo *dst_bo)
 {
     int ret;
+
+    radeon_cs_space_reset_bos(r200->radeon.cmdbuf.cs);
+
     ret = radeon_cs_space_check_with_bo(r200->radeon.cmdbuf.cs,
                                         src_bo, RADEON_GEM_DOMAIN_VRAM, 0);
     if (ret)
index 9d17463cae152a66b7673132e3e14f9578d49ca7..fb8482576139a87b952fb11ca5072bfaaaed1380 100644 (file)
@@ -1533,6 +1533,8 @@ static GLboolean validate_buffers(context_t *rmesa,
 {
     int ret;
 
+    radeon_cs_space_reset_bos(rmesa->radeon.cmdbuf.cs);
+
     ret = radeon_cs_space_check_with_bo(rmesa->radeon.cmdbuf.cs,
                                        src_bo, RADEON_GEM_DOMAIN_VRAM, 0);
     if (ret)
index e188a122d5350d0822d8b15e0069a53c3a89194c..8c3c2e47667c636a2899adc8b01d06f91ef06fbf 100644 (file)
@@ -204,6 +204,9 @@ static GLboolean validate_buffers(struct r100_context *r100,
                                   struct radeon_bo *dst_bo)
 {
     int ret;
+
+    radeon_cs_space_reset_bos(r100->radeon.cmdbuf.cs);
+
     ret = radeon_cs_space_check_with_bo(r100->radeon.cmdbuf.cs,
                                         src_bo, RADEON_GEM_DOMAIN_VRAM, 0);
     if (ret)