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 16:49:53 +0000 (11:49 -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 b56327d..2c8b3aa 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 9d17463..fb84825 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 e188a12..8c3c2e4 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)