glsl: Silence warnings in the uniform initializer test about 16-bit types
authorEric Anholt <eric@anholt.net>
Sat, 10 Feb 2018 10:41:07 +0000 (10:41 +0000)
committerEric Anholt <eric@anholt.net>
Wed, 21 Feb 2018 04:23:57 +0000 (20:23 -0800)
They should probably get unit tests implemented, but this cleans up a
bunch of warnings in my build for now.

Fixes: 59f458cd8703 ("glsl: Add 16-bit types")
Cc: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/tests/uniform_initializer_utils.cpp

index a1c68c8272eb9cf712973f2786d4c0b321ec57a1..0d7fa26752fd264c706dabaa4eea5c0c43ee8dc1 100644 (file)
@@ -110,6 +110,9 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
       case GLSL_TYPE_INTERFACE:
       case GLSL_TYPE_SUBROUTINE:
       case GLSL_TYPE_FUNCTION:
+      case GLSL_TYPE_FLOAT16:
+      case GLSL_TYPE_UINT16:
+      case GLSL_TYPE_INT16:
         ASSERT_TRUE(false);
         break;
       }
@@ -150,6 +153,9 @@ generate_data_element(void *mem_ctx, const glsl_type *type,
       case GLSL_TYPE_INTERFACE:
       case GLSL_TYPE_SUBROUTINE:
       case GLSL_TYPE_FUNCTION:
+      case GLSL_TYPE_FLOAT16:
+      case GLSL_TYPE_UINT16:
+      case GLSL_TYPE_INT16:
         ASSERT_TRUE(false);
         break;
       }
@@ -278,6 +284,9 @@ verify_data(gl_constant_value *storage, unsigned storage_array_size,
         case GLSL_TYPE_INTERFACE:
         case GLSL_TYPE_SUBROUTINE:
          case GLSL_TYPE_FUNCTION:
+         case GLSL_TYPE_FLOAT16:
+         case GLSL_TYPE_UINT16:
+         case GLSL_TYPE_INT16:
            ASSERT_TRUE(false);
            break;
         }