anv/apply_pipeline_layout: Set image.write_only to false
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Feb 2017 16:30:14 +0000 (08:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Feb 2017 16:16:45 +0000 (08:16 -0800)
commit2c3091858164a1941e75205a823eb6d83b4468ae
tree3bda4fa2b2554a2eef820d00c29f602d39519fdc
parentf8dfe9b8265d79ac577e193e5ba2215d82fddf52
anv/apply_pipeline_layout: Set image.write_only to false

This makes our driver robust to changes in spirv_to_nir which would set
this flag on the variable.  Right now, our driver relies on spirv_to_nir
*not* setting var->data.image.write_only for correctness.  Any patch
which implements the shaderStorageImageWriteWithoutFormat will need to
effectively revert this commit.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c