diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-11 21:02:44 -0300 | 
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:27 -0400 | 
| commit | 23b87147321d02abf47868f231f00f29b0d3b87d (patch) | |
| tree | eb5e8850d0fcf34a1cb301d431e6b591ecb9295d /src/shader_recompiler/ir_opt | |
| parent | a33014022ed86c27ba4faa243fa6d0a69df75564 (diff) | |
spirv: Define StorageImageWriteWithoutFormat capability when used
Diffstat (limited to 'src/shader_recompiler/ir_opt')
| -rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp index c80d2d29c..ab529e86d 100644 --- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp +++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp @@ -436,6 +436,11 @@ void VisitUsages(Info& info, IR::Inst& inst) {              inst.GetAssociatedPseudoOperation(IR::Opcode::GetSparseFromOp) != nullptr;          break;      } +    case IR::Opcode::ImageWrite: { +        const auto flags{inst.Flags<IR::TextureInstInfo>()}; +        info.uses_typeless_image_writes |= flags.image_format == ImageFormat::Typeless; +        break; +    }      case IR::Opcode::SubgroupEqMask:      case IR::Opcode::SubgroupLtMask:      case IR::Opcode::SubgroupLeMask:  | 
