summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_state_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-09 16:00:43 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-09 16:00:43 +0100
commit94fda5695e3e05d93dfa20e8d193c2a784c2ae65 (patch)
treeea16608c7390b5cec4819090c7a1d86f62d9b863 /src/mesa/pipe/i915simple/i915_state_emit.c
parentbb142746bdf2c08a924471c53c660b1dea60cd8b (diff)
Emit drawrect command as we no longer ask the kernel to do this.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state_emit.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_state_emit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_emit.c b/src/mesa/pipe/i915simple/i915_state_emit.c
index 3553d565c5..3b2ab4775b 100644
--- a/src/mesa/pipe/i915simple/i915_state_emit.c
+++ b/src/mesa/pipe/i915simple/i915_state_emit.c
@@ -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;
}