aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_nir_to_llvm.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-01-14 17:55:18 +0100
committerSamuel Pitoiset <[email protected]>2019-01-14 21:18:23 +0100
commitad6ceb2872be1c49518346c556a7cc94c03fbf8c (patch)
treedb52300b0ead27b621af3a1f497b86ac0ea91ff3 /src/amd/common/ac_nir_to_llvm.c
parent76b12fa564a5f48e3f2264718dea0158d0c05b4c (diff)
ac: add missing 16-bit types to glsl_base_to_llvm_type()
Fix crashes with dEQP-VK.spirv_assembly.instruction.compute.workgroup_memory.*16 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_nir_to_llvm.c')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 62ee9259836..81a4149c321 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3913,8 +3913,13 @@ glsl_base_to_llvm_type(struct ac_llvm_context *ac,
case GLSL_TYPE_BOOL:
case GLSL_TYPE_SUBROUTINE:
return ac->i32;
- case GLSL_TYPE_FLOAT: /* TODO handle mediump */
+ case GLSL_TYPE_INT16:
+ case GLSL_TYPE_UINT16:
+ return ac->i16;
+ case GLSL_TYPE_FLOAT:
return ac->f32;
+ case GLSL_TYPE_FLOAT16:
+ return ac->f16;
case GLSL_TYPE_INT64:
case GLSL_TYPE_UINT64:
return ac->i64;