diff options
author | Kenneth Graunke <[email protected]> | 2011-05-16 22:00:17 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-05-17 23:30:46 -0700 |
commit | c6175d78705aaca23fc5561a3a73be0b6a952b27 (patch) | |
tree | 503b95c697a4716245767508e730ab8863cbbe85 /src/mesa | |
parent | 355944087365a963d01deb5fcd6727dfd5360470 (diff) |
i965: Add _NEW_LIGHT to Gen6 clip state dirty bits.
ctx->Light.ProvokingVertex depends on _NEW_LIGHT.
Found by inspection.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_clip_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_clip_state.c b/src/mesa/drivers/dri/i965/gen6_clip_state.c index d6c1f1c893d..872465dacc2 100644 --- a/src/mesa/drivers/dri/i965/gen6_clip_state.c +++ b/src/mesa/drivers/dri/i965/gen6_clip_state.c @@ -42,6 +42,7 @@ upload_clip_state(struct brw_context *brw) if (!ctx->Transform.DepthClamp) depth_clamp = GEN6_CLIP_Z_TEST; + /* _NEW_LIGHT */ if (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION) { provoking = (0 << GEN6_CLIP_TRI_PROVOKE_SHIFT) | @@ -75,7 +76,7 @@ upload_clip_state(struct brw_context *brw) const struct brw_tracked_state gen6_clip_state = { .dirty = { - .mesa = _NEW_TRANSFORM, + .mesa = _NEW_TRANSFORM | _NEW_LIGHT, .brw = BRW_NEW_CONTEXT, .cache = 0 }, |