radeon: no need to emit full state twice after flush
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 16 Jan 2010 14:11:37 +0000 (15:11 +0100)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 8 Mar 2010 16:49:16 +0000 (11:49 -0500)
src/mesa/drivers/dri/radeon/radeon_common.c

index 79f3ff7da65de095ffe90e89202b119248e8afa4..13f1f0611b85b3059df70001a2d802be956ed58d 100644 (file)
@@ -1325,11 +1325,6 @@ void rcommonBeginBatch(radeonContextPtr rmesa, int n,
                       const char *function,
                       int line)
 {
-       if (!rmesa->cmdbuf.cs->cdw && dostate) {
-               radeon_print(RADEON_STATE, RADEON_NORMAL,
-                               "Reemit state after flush (from %s)\n", function);
-               radeonEmitState(rmesa);
-       }
        radeon_cs_begin(rmesa->cmdbuf.cs, n, file, function, line);
 
     radeon_print(RADEON_CS, RADEON_VERBOSE, "BEGIN_BATCH(%d) at %d, from %s:%i\n",