Skip to content

spirv: Implement OpArrayLength for OpenGL

Uses same NIR intrinsic as glsl_to_nir. Make it an option so it is easy later to move Vulkan drivers incrementally to use it.

Fixes piglit test spec/arb_gl_spirv/execution/ssbo/unsized-array-length.

Backported from f65750d2 ("spirv: Implement OpArrayLength for OpenGL").

Closes: #3691 (closed) Fixes: 15e43907 ("iris: Enable ARB_gl_spirv and ARB_spirv_extensions") Reviewed-by: Alejandro Piñeiro apinheiro@igalia.com Reviewed-by: Jason Ekstrand jason@jlekstrand.net Part-of: !8136 (merged)

Merge request reports

Loading