diff -up Vulkan-ValidationLayers-sdk-1.2.198.0/layers/gpu_validation.cpp.dma Vulkan-ValidationLayers-sdk-1.2.198.0/layers/gpu_validation.cpp
--- Vulkan-ValidationLayers-sdk-1.2.198.0/layers/gpu_validation.cpp.dma 2021-12-09 19:37:52.918639116 +1000
+++ Vulkan-ValidationLayers-sdk-1.2.198.0/layers/gpu_validation.cpp 2021-12-09 19:38:15.449247456 +1000
@@ -1300,7 +1300,7 @@ bool GpuAssisted::InstrumentShader(const
optimizer.RegisterPass(CreateInstBindlessCheckPass(desc_set_bind_index, unique_shader_module_id, descriptor_indexing,
descriptor_indexing, buffer_oob_enabled, buffer_oob_enabled));
// Call CreateAggressiveDCEPass with preserve_interface == true
- optimizer.RegisterPass(CreateAggressiveDCEPass(true));
+ optimizer.RegisterPass(CreateAggressiveDCEPassPreserveInterface());
if ((IsExtEnabled(device_extensions.vk_ext_buffer_device_address) ||
IsExtEnabled(device_extensions.vk_khr_buffer_device_address)) &&
shaderInt64 && enabled_features.core12.bufferDeviceAddress) {