From c73f8b657692776516ba682ec19fd1e8be78efad Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 7 Dec 2018 14:52:29 +0000 Subject: [PATCH] ac/nir: add 8-bit types to glsl_base_to_llvm_type Signed-off-by: Rhys Perry Reviewed-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 5a199c1147d..a8564180a43 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3944,6 +3944,9 @@ glsl_base_to_llvm_type(struct ac_llvm_context *ac, case GLSL_TYPE_BOOL: case GLSL_TYPE_SUBROUTINE: return ac->i32; + case GLSL_TYPE_INT8: + case GLSL_TYPE_UINT8: + return ac->i8; case GLSL_TYPE_INT16: case GLSL_TYPE_UINT16: return ac->i16; -- 2.30.2