Skip to content

radeonsi: don't lower constant arrays to uniforms in GLSL IR

This re-enables the change made in 2f5783bc which was incorrectly disabled by 3e1dd99a.

For radeonsi, we will prefer the NIR pass as it'll generate better code (some index calculation and a single load vs. a load, then index calculation, then another load) and oftentimes NIR optimization can kick in and make all the access indices constant.

Fixes: 3e1dd99a ("radeonsi: Remove a bunch of default handling of pipe caps.")

Merge request reports