ac/nir: add 8-bit types to glsl_base_to_llvm_type
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 7 Dec 2018 14:52:29 +0000 (14:52 +0000)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Mar 2019 08:02:22 +0000 (09:02 +0100)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 5a199c1147d826861768a06de5be3bbb683de2dd..a8564180a43dab1a75b06378e0abb7ded6dd7436 100644 (file)
@@ -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;