[i965] use intel_batchbuffer_flush to flush the clear
authorZou Nan hai <nanhai.zou@intel.com>
Fri, 18 Sep 2009 05:29:28 +0000 (13:29 +0800)
committerZou Nan hai <nanhai.zou@intel.com>
Fri, 18 Sep 2009 05:29:28 +0000 (13:29 +0800)
src/mesa/drivers/dri/intel/intel_clear.c

index 9efe6a277c77343e58a93d5c5ed998311a90bb27..736434d7639b9c7ab95cd50c8734a9cb1e385c0d 100644 (file)
@@ -170,8 +170,9 @@ intelClear(GLcontext *ctx, GLbitfield mask)
         }
         DBG("\n");
       }
-      intelFlush(&intel->ctx);
+
       _mesa_meta_clear(&intel->ctx, tri_mask);
+      intel_batchbuffer_flush(intel->batch);
    }
 
    if (swrast_mask) {