i965/gen6: Add support for gl_PointCoord.
authorEric Anholt <eric@anholt.net>
Sun, 5 Jun 2011 18:52:20 +0000 (11:52 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 9 Jun 2011 15:41:54 +0000 (08:41 -0700)
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 <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_sf_state.c

index 75a8509..5bb731d 100644 (file)
@@ -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