summaryrefslogtreecommitdiff
path: root/src/i915_3d.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-21 14:33:18 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-24 18:31:16 +0100
commitea07535240dafc4c6ef55b4b7a2eeaa595febe86 (patch)
tree34d5d5ba34da6dfb40255a3627e0b4387242c1a8 /src/i915_3d.c
parent80a9e64f50aeda6004e3aba1fbfdda50bb1f1c82 (diff)
i915: Emit CA over using OutReverse + Add passes
On PineView: 578/621 -> 610/617 kglyphs/sec [rgb/aa]
Diffstat (limited to 'src/i915_3d.c')
-rw-r--r--src/i915_3d.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i915_3d.c b/src/i915_3d.c
index 7f07b4bc..906043b1 100644
--- a/src/i915_3d.c
+++ b/src/i915_3d.c
@@ -85,8 +85,13 @@ void I915EmitInvarientState(ScrnInfoPtr scrn)
ENABLE_STENCIL_WRITE_MASK | STENCIL_WRITE_MASK(0xff) |
ENABLE_STENCIL_TEST_MASK | STENCIL_TEST_MASK(0xff));
- OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | 0);
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | I1_LOAD_S(4) | I1_LOAD_S(5) | 2);
OUT_BATCH(0x00000000); /* Disable texture coordinate wrap-shortest */
+ OUT_BATCH((1 << S4_POINT_WIDTH_SHIFT) |
+ S4_LINE_WIDTH_ONE |
+ S4_CULLMODE_NONE |
+ S4_VFMT_XY);
+ OUT_BATCH(0x00000000); /* Stencil. */
OUT_BATCH(_3DSTATE_SCISSOR_ENABLE_CMD | DISABLE_SCISSOR_RECT);
OUT_BATCH(_3DSTATE_SCISSOR_RECT_0_CMD);