Skip to content

zink: correct image cap checks

Erik Faye-Lund requested to merge kusma/mesa:zink-shader-image-fixup into master

PIPE_CAP_IMAGE_LOAD_FORMATTED doesn't depend on shaderStorageImageExtendedFormats or shaderStorageImageWriteWithoutFormat.

PIPE_SHADER_CAP_MAX_SHADER_IMAGES enables GL_EXT_shader_image_load_store, which does require shaderStorageImageExtendedFormats. Having shaderStorageImageWriteWithoutFormat and shaderStorageImageReadWithoutFormat isn't enough to support this.

It might be possible to lower extended formats to format-less reads or writes, but we don't currently do that, so we should just correct the test for now.

Merge request reports