nir/lower_amul: Add a variable mode check
[mesa.git] / src / compiler / nir_types.h
index 7f947d3f08ecf81b6cc55c006002d66df8a46ae2..eeddcf2dabe3e1107cc9e105ca73b69fd2978741 100644 (file)
@@ -55,6 +55,8 @@ glsl_get_struct_field_data(const struct glsl_type *type, unsigned index);
 enum glsl_interface_packing
 glsl_get_internal_ifc_packing(const struct glsl_type *type,
                               bool std430_supported);
+enum glsl_interface_packing
+glsl_get_ifc_packing(const struct glsl_type *type);
 
 unsigned glsl_get_std140_base_alignment(const struct glsl_type *type,
                                         bool row_major);
@@ -210,6 +212,8 @@ const struct glsl_type *glsl_transposed_type(const struct glsl_type *type);
 const struct glsl_type *glsl_channel_type(const struct glsl_type *type);
 
 const struct glsl_type *glsl_float16_type(const struct glsl_type *type);
+const struct glsl_type *glsl_int16_type(const struct glsl_type *type);
+const struct glsl_type *glsl_uint16_type(const struct glsl_type *type);
 
 void glsl_get_natural_size_align_bytes(const struct glsl_type *type,
                                        unsigned *size, unsigned *align);