diff options
author | Eric Anholt <[email protected]> | 2011-06-05 11:52:20 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-06-09 08:41:54 -0700 |
commit | 6861a701772eac3a6a7d3136d03efa7ac7e5c026 (patch) | |
tree | 47c21a009b3f1d9f02909fe3e063a79e2be92608 /src/mesa | |
parent | f304bb8a5d040d99db47a65813d216d11c66fb47 (diff) |
i965/gen6: Add support for gl_PointCoord.
This is just like PointSprite overrides, but it's always on for that
attribute.
Fixes glsl-fs-pointcoord, gtf/point_sprites.
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_sf_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c index 75a8509c87a..5bb731dc8fd 100644 --- a/src/mesa/drivers/dri/i965/gen6_sf_state.c +++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c @@ -251,6 +251,9 @@ upload_sf_state(struct brw_context *brw) dw16 |= (1 << input_index); } + if (attr == FRAG_ATTRIB_PNTC) + dw16 |= (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 |