[Mesa-dev] [PATCH] ac: add missing GLSL_TYPE_FLOAT16 to glsl_base_to_llvm_type()

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Jan 14 12:48:52 UTC 2019


Fix a crash with
dEQP-VK.spirv_assembly.instruction.compute.workgroup_memory.float16

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

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 5023b96f92d..6bdc617b586 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3904,6 +3904,8 @@ glsl_base_to_llvm_type(struct ac_llvm_context *ac,
 		return ac->i32;
 	case GLSL_TYPE_FLOAT: /* TODO handle mediump */
 		return ac->f32;
+	case GLSL_TYPE_FLOAT16:
+		return ac->f16;
 	case GLSL_TYPE_INT64:
 	case GLSL_TYPE_UINT64:
 		return ac->i64;
-- 
2.20.1



More information about the mesa-dev mailing list