[Mesa-dev] [PATCH] radv/gfx10: fix VS input VGPRs with the legacy path

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Jul 23 11:33:20 UTC 2019


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_nir_to_llvm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index 336bae28614..9cea92e8a69 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -851,7 +851,8 @@ declare_vs_input_vgprs(struct radv_shader_context *ctx, struct arg_info *args)
 				add_arg(args, ARG_VGPR, ctx->ac.i32, NULL); /* unused */
 			}
 		} else {
-			if (ctx->ac.chip_class >= GFX10) {
+			if (ctx->ac.chip_class >= GFX10 &&
+			    ctx->options->key.vs_common_out.as_ngg) {
 				add_arg(args, ARG_VGPR, ctx->ac.i32, NULL); /* user vgpr */
 				add_arg(args, ARG_VGPR, ctx->ac.i32, NULL); /* user vgpr */
 				add_arg(args, ARG_VGPR, ctx->ac.i32, &ctx->abi.instance_id);
-- 
2.22.0



More information about the mesa-dev mailing list