diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-17 16:08:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-17 16:08:10 -0500 |
| commit | 5da72a891fb4c4ddddbeefc0b235079fa3830743 (patch) | |
| tree | cd4006e1a4e50c298ebb3004341191203ac11c56 /src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | |
| parent | f8a7d6a0aeb667c6747e3ee2366c45f547034c23 (diff) | |
| parent | 0104e28fe4215468b8c444500e24b62d1ec0cc56 (diff) | |
Merge pull request #7450 from FernandoS27/ndc-vulkan
Vulkan: Add support for VK_EXT_depth_clip_control.
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp index 01f6ec9b5..73b67f0af 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp @@ -461,7 +461,7 @@ void EmitSetSampleMask(EmitContext& ctx, Id value) { } void EmitSetFragDepth(EmitContext& ctx, Id value) { - if (!ctx.runtime_info.convert_depth_mode) { + if (!ctx.runtime_info.convert_depth_mode || ctx.profile.support_native_ndc) { ctx.OpStore(ctx.frag_depth, value); return; } |
