mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-19 07:08:05 +02:00
i965/gen7: Add support for gl_PointCoord.
This is exactly analogous to Eric's Gen6 change in commit6861a70177. His explanation: "This is just like PointSprite overrides, but it's always on for that attribute." Fixes glsl-fs-pointcoord and gtf/point_sprites. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> (cherry-picked from commit186e37c754)
This commit is contained in:
parent
31f4ab790f
commit
e6e7c456de
1 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ upload_sbe_state(struct brw_context *brw)
|
|||
dw10 |= (1 << input_index);
|
||||
}
|
||||
|
||||
if (attr == FRAG_ATTRIB_PNTC)
|
||||
dw10 |= (1 << input_index);
|
||||
|
||||
/* The hardware can only do the overrides on 16 overrides at a
|
||||
* time, and the other up to 16 have to be lined up so that the
|
||||
* input index = the output index. We'll need to do some
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue