summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-23 09:18:22 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:29 +0200
commitcfd873275d705f124efff6ceae33efc8994e64fa (patch)
treec527727ef66eee90f6f64d6598faebfaa4163a5e
parentspirv: Only add image operands mask when needed (diff)
downloadyuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar.gz
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar.bz2
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar.lz
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar.xz
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.tar.zst
yuzu-cfd873275d705f124efff6ceae33efc8994e64fa.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index 0cb075670..10de612cd 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -212,7 +212,11 @@ void DefineEntryPoint(const IR::Program& program, EmitContext& ctx, Id main) {
break;
case Stage::Fragment:
execution_model = spv::ExecutionModel::Fragment;
- ctx.AddExecutionMode(main, spv::ExecutionMode::OriginUpperLeft);
+ if (ctx.profile.lower_left_origin_mode) {
+ ctx.AddExecutionMode(main, spv::ExecutionMode::OriginLowerLeft);
+ } else {
+ ctx.AddExecutionMode(main, spv::ExecutionMode::OriginUpperLeft);
+ }
if (program.info.stores_frag_depth) {
ctx.AddExecutionMode(main, spv::ExecutionMode::DepthReplacing);
}