diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-14 17:55:18 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-01-14 21:18:23 +0100 |
commit | ad6ceb2872be1c49518346c556a7cc94c03fbf8c (patch) | |
tree | db52300b0ead27b621af3a1f497b86ac0ea91ff3 /src/amd | |
parent | 76b12fa564a5f48e3f2264718dea0158d0c05b4c (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')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 7 |
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; |