From 7b4f0eadc189a1fc4607947c2f432f111a2dc20d Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Sat, 6 Jun 2020 13:06:34 -0400 Subject: [PATCH] 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: --- src/freedreno/vulkan/tu_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2