Mesa (7.11): i965/gen7: Add support for gl_PointCoord.

Ian Romanick idr at kemper.freedesktop.org
Tue Jul 19 23:41:07 UTC 2011


Module: Mesa
Branch: 7.11
Commit: e6e7c456dee96985ac1511bb0f824f606c34bef5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6e7c456dee96985ac1511bb0f824f606c34bef5

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Jun 29 15:18:55 2011 -0700

i965/gen7: Add support for gl_PointCoord.

This is exactly analogous to Eric's Gen6 change in commit
6861a701772eac3a6a7d3136d03efa7ac7e5c026.  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 at anholt.net>
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

(cherry-picked from commit 186e37c75454965e1a58298e878a9585f4866749)

---

 src/mesa/drivers/dri/i965/gen7_sf_state.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_sf_state.c b/src/mesa/drivers/dri/i965/gen7_sf_state.c
index e36c44a..0f97cea 100644
--- a/src/mesa/drivers/dri/i965/gen7_sf_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_sf_state.c
@@ -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




More information about the mesa-commit mailing list