From: Jonathan Marek Date: Wed, 25 Sep 2019 16:48:39 +0000 (-0400) Subject: turnip: fix vertex_id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53277757aa504438191cf8cdd216d7ac034adccf;p=mesa.git turnip: fix vertex_id ir3 uses non-zero based vertex id for a6xx Signed-off-by: Jonathan Marek Reviewed-by: Kristian H. Kristensen Acked-by: Eric Anholt --- 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);