compiler/spirv: move the check for Int8 capability
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 22 Jan 2019 10:27:09 +0000 (11:27 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 18 Apr 2019 11:23:03 +0000 (13:23 +0200)
So it is right after the checks for the other various Int* capabilities.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c

index b297a4c2e4adff38e27d5572d31b62b8bf0946d5..50847bb76a7935f4ccb9b515b25f8d89013964c4 100644 (file)
@@ -3588,6 +3588,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityInt16:
          spv_check_supported(int16, cap);
          break;
+      case SpvCapabilityInt8:
+         spv_check_supported(int8, cap);
+         break;
 
       case SpvCapabilityTransformFeedback:
          spv_check_supported(transform_feedback, cap);
@@ -3601,10 +3604,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
          spv_check_supported(int64_atomics, cap);
          break;
 
-      case SpvCapabilityInt8:
-         spv_check_supported(int8, cap);
-         break;
-
       case SpvCapabilityStorageImageMultisample:
          spv_check_supported(storage_image_ms, cap);
          break;