summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-rw-r--r--src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
index 70449eeca..f9de17b25 100644
--- a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
+++ b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
@@ -314,8 +314,8 @@ std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias)
314 return std::nullopt; 314 return std::nullopt;
315 } 315 }
316 const StorageBufferAddr storage_buffer{ 316 const StorageBufferAddr storage_buffer{
317 .index{index.U32()}, 317 .index = index.U32(),
318 .offset{offset.U32()}, 318 .offset = offset.U32(),
319 }; 319 };
320 if (!Common::IsAligned(storage_buffer.offset, 16)) { 320 if (!Common::IsAligned(storage_buffer.offset, 16)) {
321 // The SSBO pointer has to be aligned 321 // The SSBO pointer has to be aligned
@@ -484,7 +484,7 @@ void GlobalMemoryToStorageBufferPass(IR::Program& program) {
484 .cbuf_index = storage_buffer.index, 484 .cbuf_index = storage_buffer.index,
485 .cbuf_offset = storage_buffer.offset, 485 .cbuf_offset = storage_buffer.offset,
486 .count = 1, 486 .count = 1,
487 .is_written{info.writes.contains(storage_buffer)}, 487 .is_written = info.writes.contains(storage_buffer),
488 }); 488 });
489 } 489 }
490 for (const StorageInst& storage_inst : info.to_replace) { 490 for (const StorageInst& storage_inst : info.to_replace) {