This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Remove layout decoration on unneeded storage classes
ClosedPublic

Authored by antiagainst on Apr 27 2022, 11:03 AM.

Details

Summary

Per SPIR-V validation rules, explict layout decorations are only
needed for StorageBuffer, PhysicalStorageBuffer, Uniform, and
PushConstant storage classes. (And even that is for Shader
capabilities). So we don't need such decorations on the rest.

Diff Detail

Event Timeline

antiagainst created this revision.Apr 27 2022, 11:03 AM
antiagainst requested review of this revision.Apr 27 2022, 11:03 AM
hanchung accepted this revision.Apr 27 2022, 11:34 PM
This revision is now accepted and ready to land.Apr 27 2022, 11:34 PM