summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-10 00:55:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-10 00:57:42 +0000
commita72563464f53f24246379afcf1365206fae9aad3 (patch)
tree7a9ab7e1ac384cc258978c84dcd1c6efc36ad303
parent3252b46e115e6cc46abbcc4f502feeb9edc31ad6 (diff)
sna/gen3: Clear the video shader flag upon batch reset
Fixes regression from 3252b46e1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen3_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 83ac23a9..8e978c2b 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -1743,7 +1743,7 @@ gen3_render_reset(struct sna *sna)
state->last_blend = 0;
state->last_constants = 0;
state->last_sampler = 0;
- state->last_shader = -1;
+ state->last_shader = 0x7fffffff;
state->last_diffuse = 0xcc00ffee;
state->last_specular = 0xcc00ffee;