[Vulkan] Fix VUID-FragDepth-FragDepth-04216 validation issue

This commit is contained in:
Herman S.
2026-02-25 12:31:18 +09:00
parent bf880fde0c
commit 74ce1c812f
+4
View File
@@ -723,6 +723,10 @@ std::vector<uint8_t> SpirvShaderTranslator::CompleteTranslation() {
builder_->addExecutionMode(function_main_,
spv::ExecutionModeEarlyFragmentTests);
}
if (current_shader().writes_depth()) {
builder_->addExecutionMode(function_main_,
spv::ExecutionModeDepthReplacing);
}
if (edram_fragment_shader_interlock_) {
// Accessing per-sample values, so interlocking just when there's common
// coverage is enough if the device exposes that.