radeon: fix stupidity in cs space check code.
authorDave Airlie <airlied@redhat.com>
Thu, 25 Jun 2009 02:13:17 +0000 (12:13 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Jun 2009 02:13:17 +0000 (12:13 +1000)
This was already correct in the GEM code

src/mesa/drivers/dri/radeon/radeon_cs_legacy.c

index e4ee2b99151b055c7627b169866780f971bbdc85..ac94789417e8b1fd8886c2c986568238533f1dd5 100644 (file)
@@ -391,11 +391,15 @@ static int cs_check_space(struct radeon_cs *cs, struct radeon_cs_space_check *bo
          continue;
  
       /* already accounted this bo */
-      if (write_domain && (write_domain == bo->space_accounted))
+      if (write_domain && (write_domain == bo->space_accounted)) {
+         bos[i].new_accounted = bo->space_accounted;
          continue;
+      }
 
-      if (read_domains && ((read_domains << 16) == bo->space_accounted))
+      if (read_domains && ((read_domains << 16) == bo->space_accounted)) {
+         bos[i].new_accounted = bo->space_accounted;
          continue;
+      }
       
       if (bo->space_accounted == 0) {
          if (write_domain == RADEON_GEM_DOMAIN_VRAM)