It doesn't really make sense, since we don't have special texture
coordinate varyings, but it'll make some code simpler for XFB and it
doesn't hurt us, even if I lose a bit of my soul setting it.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
case PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL:
return 0;
+ /* I really don't want to set this CAP but let's not swim against the
+ * tide.. */
+ case PIPE_CAP_TGSI_TEXCOORD:
+ return 1;
+
case PIPE_CAP_SEAMLESS_CUBE_MAP:
case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE:
return 1;
unsigned loc = fs->varyings_loc[i];
unsigned pnt_loc =
- (loc >= VARYING_SLOT_VAR0) ? (loc - VARYING_SLOT_VAR0) :
+ (loc >= VARYING_SLOT_TEX0) ? (loc - VARYING_SLOT_TEX0) :
(loc == VARYING_SLOT_PNTC) ? 8 :
~0;