turnip: set .MERGEDREGS based on variant
authorRob Clark <robdclark@chromium.org>
Sat, 13 Jun 2020 16:35:40 +0000 (09:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 02:46:28 +0000 (02:46 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>

src/freedreno/vulkan/tu_pipeline.c

index e556596c854c518a9097a466090c210365b5835f..418023eb4bf1a350484f4a58569e44a463982eea 100644 (file)
@@ -605,7 +605,8 @@ tu6_emit_xs_config(struct tu_cs *cs,
    tu_cs_emit(cs,
               A6XX_SP_VS_CTRL_REG0_THREADSIZE(threadsize) |
               A6XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT(xs->info.max_reg + 1) |
-              A6XX_SP_VS_CTRL_REG0_MERGEDREGS |
+              A6XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT(xs->info.max_half_reg + 1) |
+              COND(xs->mergedregs, A6XX_SP_VS_CTRL_REG0_MERGEDREGS) |
               A6XX_SP_VS_CTRL_REG0_BRANCHSTACK(xs->branchstack) |
               COND(xs->need_pixlod, A6XX_SP_VS_CTRL_REG0_PIXLODENABLE) |
               COND(xs->need_fine_derivatives, A6XX_SP_VS_CTRL_REG0_DIFF_FINE) |