Skip to content

Use proper macro to set bits of variable correctly

Otavio Pontes requested to merge otaviobp/mesa:nir into main

When slots is 64 only the first bit was being set, instead of setting all 64 bits of the variable, so for that case the function get_variable_io_mask() always returned 0.

This behaviour caused variables that are being used both on producer and consumer to be considered unused and thus being removed on nir_remove_unused_io_vars().

Merge request reports