mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
i965: Fix provoking vertex select in clip state for sandybridge
Triangle fan provoking vertex for first convention should be 'vertex 1' in sandybridge clip state. Partly fix glean/clipFlat case
This commit is contained in:
parent
7bd2c5d1f9
commit
9977297ad9
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ upload_clip_state(struct brw_context *brw)
|
|||
depth_clamp = GEN6_CLIP_Z_TEST;
|
||||
|
||||
if (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION) {
|
||||
provoking = 0;
|
||||
provoking =
|
||||
(0 << GEN6_CLIP_TRI_PROVOKE_SHIFT) |
|
||||
(1 << GEN6_CLIP_TRIFAN_PROVOKE_SHIFT) |
|
||||
(0 << GEN6_CLIP_LINE_PROVOKE_SHIFT);
|
||||
} else {
|
||||
provoking =
|
||||
(2 << GEN6_CLIP_TRI_PROVOKE_SHIFT) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue