[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 9efe6a2..736434d 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) {