diff options
author | Jonathan Marek <[email protected]> | 2019-09-25 12:48:39 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-09-26 17:18:13 -0400 |
commit | 53277757aa504438191cf8cdd216d7ac034adccf (patch) | |
tree | 89458db69f7d01afcae2c0b8e127812f2fdea7d0 | |
parent | 1e8aff9ff33b9f3a03078671c08c50873f6dfe77 (diff) |
turnip: fix vertex_id
ir3 uses non-zero based vertex id for a6xx
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Acked-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/freedreno/vulkan/tu_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index d5dcd18f6e6..831bcfbd7e1 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -478,7 +478,7 @@ tu6_emit_vs_system_values(struct tu_cs *cs, const struct ir3_shader_variant *vs) { const uint32_t vertexid_regid = - ir3_find_sysval_regid(vs, SYSTEM_VALUE_VERTEX_ID_ZERO_BASE); + ir3_find_sysval_regid(vs, SYSTEM_VALUE_VERTEX_ID); const uint32_t instanceid_regid = ir3_find_sysval_regid(vs, SYSTEM_VALUE_INSTANCE_ID); |