From 625e37b317e4d237bdc9f80d7ab86b5d2badddc7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 8 Jul 2011 18:58:32 +0100 Subject: [PATCH] sna/gen3: So we also need to ensure stippling is cleared... My theory that we used nothing that invoked polygon stippling proved baseless. Fixes regression from 3b5971bd2359383cb8326702d80e03bc15d34c69 Signed-off-by: Chris Wilson --- src/sna/gen3_render.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index 464e87be..7665cdcb 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -1082,7 +1082,7 @@ static void gen3_emit_invariant(struct sna *sna) CSB_TCB(6, 6) | CSB_TCB(7, 7)); - OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | I1_LOAD_S(4) | I1_LOAD_S(5) | 1); + OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | I1_LOAD_S(4) | I1_LOAD_S(5) | 2); OUT_BATCH(0); /* Disable texture coordinate wrap-shortest */ OUT_BATCH((1 << S4_POINT_WIDTH_SHIFT) | S4_LINE_WIDTH_ONE | @@ -1096,6 +1096,9 @@ static void gen3_emit_invariant(struct sna *sna) OUT_BATCH(_3DSTATE_LOAD_INDIRECT); OUT_BATCH(0x00000000); + OUT_BATCH(_3DSTATE_STIPPLE); + OUT_BATCH(0x00000000); + sna->render_state.gen3.need_invariant = FALSE; }