Skip to content

nir/opt_shrink_vectors: Clamp to support vec sizes

Alyssa Rosenzweig requested to merge alyssa/mesa:nir/shrink-clamp into main

The set of supported vector sizes in NIR has holes in it. For example, we support vec5 and vec8, but not vec6 or vec7. However, this pass did not take that into account, and would happily shrink a vec8 down to a vec7, causing NIR validation to fail. Instead, the pass should clamp to the next supported vector size.

Fixes NIR validation fail in OpenCL's test_basic hiloeo subtest.

Merge request reports