r300g: remove the CS compenstation for non-atomized states
authorMarek Olšák <maraeo@gmail.com>
Wed, 14 Apr 2010 02:44:13 +0000 (04:44 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 14 Apr 2010 02:48:19 +0000 (04:48 +0200)
Now there aren't any. If CS overflow occurs, the fix should go directly
before the problematic BEGIN_CS.

src/gallium/drivers/r300/r300_emit.c

index aa4dd1073dd73c9d2ff7b72dc4124dc01e7f306b..d55b803603f2fb0d92cdfed9d2fe414951a11ca4 100644 (file)
@@ -1207,9 +1207,6 @@ unsigned r300_get_num_dirty_dwords(struct r300_context *r300)
         }
     }
 
-    /* XXX This is the compensation for the non-atomized states. */
-    dwords += 1024;
-
     return dwords;
 }