From 94fda5695e3e05d93dfa20e8d193c2a784c2ae65 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 9 Aug 2007 16:00:43 +0100 Subject: [PATCH] Emit drawrect command as we no longer ask the kernel to do this. --- src/mesa/pipe/i915simple/i915_state_emit.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/mesa/pipe/i915simple/i915_state_emit.c b/src/mesa/pipe/i915simple/i915_state_emit.c index 3553d565c56..3b2ab4775b8 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; } -- 2.30.2