vc4: Make sure we recompile when sample_mask changes.
[mesa.git] / src / gallium / drivers / vc4 / vc4_nir_lower_io.c
index be89bfcc937e02e8ff1622c9efd163ea029d04f8..f1e5478126e28025c1e7d2605a19e21c37a06f73 100644 (file)
@@ -98,7 +98,7 @@ vc4_nir_get_vattr_channel_vpm(struct vc4_compile *c,
                 &desc->channel[swiz];
         nir_ssa_def *temp;
 
-        if (swiz > UTIL_FORMAT_SWIZZLE_W) {
+        if (swiz > PIPE_SWIZZLE_W) {
                 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz);
         } else if (chan->size == 32 && chan->type == UTIL_FORMAT_TYPE_FLOAT) {
                 return vc4_nir_get_swizzled_channel(b, vpm_reads, swiz);