Skip to content

asahi: Optimize lower_resinfo for cube maps

Avoid generating NIR for reading both width and height when the texture is a cube map.

Tested by

  • Mesa tests
  • dEQP openglcts
    • Ran into issues building the VK-GL-CTS repo at current main so ended up going for the opengl-cts-4.6.2 branch.
    • Passes dEQP-GLES3.functional.shaders.texture_functions.texturesize.*
  • Observed the IR and assembly using AGX_MESA_DEBUG=shaders,shaderdb and saw the expected reduction in generated instructions.

Merge request reports