Emit drawrect command as we no longer ask the kernel to do this.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Aug 2007 15:00:43 +0000 (16:00 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Aug 2007 15:00:43 +0000 (16:00 +0100)
src/mesa/pipe/i915simple/i915_state_emit.c

index 3553d565c56568a20f736c7a43f4da72d23d6525..3b2ab4775b821ac715f21baa4e397540c0784093 100644 (file)
@@ -251,6 +251,19 @@ i915_emit_hardware_state(struct i915_context *i915 )
         OUT_BATCH( prog[i] );
    }
 
+   {
+      int w = i915->framebuffer.cbufs[0]->width;
+      int h = i915->framebuffer.cbufs[0]->height;
+
+      OUT_BATCH(_3DSTATE_DRAW_RECT_CMD);
+      OUT_BATCH(0);
+      OUT_BATCH(0);
+      OUT_BATCH(((w - 1) & 0xffff) | ((h - 1) << 16));
+      OUT_BATCH(0);
+      OUT_BATCH(0);
+   }
+
+
    i915->hw_dirty = 0;
 }