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

This commit is contained in:
Herman S.
2025-12-13 12:09:24 +09:00
parent bf880fde0c
commit 74ce1c812f

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.