Mesa (master): turnip: fix VFD_CONTROL for binning pass

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 8 22:19:40 UTC 2020


Module: Mesa
Branch: master
Commit: 7b4f0eadc189a1fc4607947c2f432f111a2dc20d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b4f0eadc189a1fc4607947c2f432f111a2dc20d

Author: Jonathan Marek <jonathan at marek.ca>
Date:   Sat Jun  6 13:06:34 2020 -0400

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 <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5370>

---

 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));
 }
 



More information about the mesa-commit mailing list