[Mesa-dev] [PATCH] ac/nir: fix GS load input type.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Feb 6 11:55:01 UTC 2018


Fixes: df1d5174fc "ac/nir: replace SI.buffer.load.dword with amdgcn.buffer.load"
---
 src/amd/common/ac_nir_to_llvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 3fe08f0a19..faf62ac74b 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3077,7 +3077,7 @@ load_gs_input(struct ac_shader_abi *abi,
 		}
 	}
 	result = ac_build_varying_gather_values(&ctx->ac, value, num_components, component);
-
+	result = ac_to_integer(&ctx->ac, result);
 	return result;
 }
 
-- 
2.16.1



More information about the mesa-dev mailing list