[Mesa-dev] [PATCH 3/3] i965/gen6: Add support for gl_PointCoord.
Eric Anholt
eric at anholt.net
Sun Jun 5 20:30:11 PDT 2011
This is just like PointSprite overrides, but it's always on for that
attribute.
Fixes glsl-fs-pointcoord, gtf/point_sprites.
---
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 f3e6734..faa68d6 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
--
1.7.5.3
More information about the mesa-dev
mailing list