st/mesa: redefine mapping from VARYING_SLOT_TEXi/PNTC/VARi to TGSI GENERIC[i]
authorMarek Olšák <marek.olsak@amd.com>
Thu, 18 Sep 2014 19:03:24 +0000 (21:03 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 24 Sep 2014 12:48:02 +0000 (14:48 +0200)
commit6cfedf8797f0ee3dd7c8cf9f28ee2c2b2d0eb2dc
tree4f1449b62d45410cdf2c4d23b30a5ee252cd3146
parent77038cd35ab94f2574925343149943cbef632b2b
st/mesa: redefine mapping from VARYING_SLOT_TEXi/PNTC/VARi to TGSI GENERIC[i]

Generic varyings in TGSI were based on the value of VARYING_SLOT_TEX0, so VAR0
was always GENERIC[22] (with tessellation patches). Some drivers might not
be able to cope with that.

This commit defines a proper mapping, so that PNTC is GENERIC[8] and VAR0 is
GENERIC[9].

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_rasterizer.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h