st/mesa: relax EXT_shader_image_load_store enable
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 7 Aug 2019 02:54:56 +0000 (22:54 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 8 Aug 2019 02:31:38 +0000 (22:31 -0400)
commit582c86346d77538009d993c4cf8c7aa4021c0ad0
tree7c9a798cd78c0d239d31728f1346c267ccca2403
parenta29bc3a3adf0626fabb083a572a0d1fee5f2a1ee
st/mesa: relax EXT_shader_image_load_store enable

There's no reason to bring format-less load requirement into this
extension. It requires a size to be provided, and a compatible format is
computed from the size + data type. For example

  layout(size1x32) uniform iimage1D image;

becomes

  DCL IMAGE[0], 1D, PIPE_FORMAT_R32_SINT, WR

whereas PIPE_CAP_IMAGE_LOAD_FORMATTED is designed to allow
PIPE_FORMAT_NONE to be provided as a format and still enable LOAD
operations to be performed.

So the shader has all the information it needs about the format.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c