diff options
author | Roland Scheidegger <sroland@vmware.com> | 2014-12-12 04:13:54 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2014-12-16 04:23:00 +0100 |
commit | 97dc3d826e0c04e747ff5dbecf3026b6a16737fd (patch) | |
tree | e4463f3b55a5bb8ea114061be8324f8a238f832b /src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | |
parent | ade8b26bf515fa4f0cbf43e9df4885368e984277 (diff) | |
download | external_mesa3d-97dc3d826e0c04e747ff5dbecf3026b6a16737fd.zip external_mesa3d-97dc3d826e0c04e747ff5dbecf3026b6a16737fd.tar.gz external_mesa3d-97dc3d826e0c04e747ff5dbecf3026b6a16737fd.tar.bz2 |
draw: implement support for the VERTEXID_NOBASE and BASEVERTEX semantics.
This fixes 4 vertexid related piglit tests with llvmpipe due to switching
behavior of vertexid to the one gl expects.
(Won't fix non-llvm draw path since we don't get the basevertex currently.)
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 76b9d69..3dfff05 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -1538,6 +1538,16 @@ emit_fetch_system_value( atype = TGSI_TYPE_UNSIGNED; break; + case TGSI_SEMANTIC_VERTEXID_NOBASE: + res = bld->system_values.vertex_id_nobase; + atype = TGSI_TYPE_UNSIGNED; + break; + + case TGSI_SEMANTIC_BASEVERTEX: + res = bld->system_values.basevertex; + atype = TGSI_TYPE_UNSIGNED; + break; + case TGSI_SEMANTIC_PRIMID: res = bld->system_values.prim_id; atype = TGSI_TYPE_UNSIGNED; |