From: Jonathan Marek Date: Sat, 6 Jun 2020 17:06:34 +0000 (-0400) Subject: turnip: fix VFD_CONTROL for binning pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b4f0eadc189a1fc4607947c2f432f111a2dc20d;p=mesa.git turnip: fix VFD_CONTROL for binning pass Fixes some cases with TU_DEBUG=forcebin, specifically the failures in: dEQP-VK.glsl.*_vertex Signed-off-by: Jonathan Marek Part-of: --- diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 3941108576d..9ddcf61e231 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -1683,7 +1683,7 @@ tu6_emit_vertex_input(struct tu_cs *cs, tu_cs_emit_regs(cs, A6XX_VFD_CONTROL_0( - .fetch_cnt = info->vertexBindingDescriptionCount, + .fetch_cnt = vfd_decode_idx, /* decode_cnt for binning pass ? */ .decode_cnt = vfd_decode_idx)); }