summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2022-11-19 16:40:14 +0100
committerGitHub <noreply@github.com>2022-11-19 16:40:14 +0100
commitb0365a81c2aaec3b9328d1375a0ea52457db293e (patch)
treedbe716234b360621d45e352fea86f8e3e865d1ba /src
parentMerge pull request #9252 from liamwhite/radv-superiority (diff)
parentspirv_emit_context: add missing flat decoration (diff)
downloadyuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar.gz
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar.bz2
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar.lz
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar.xz
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.tar.zst
yuzu-b0365a81c2aaec3b9328d1375a0ea52457db293e.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
index dd96b7803..8e3e40cd5 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
@@ -1362,6 +1362,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
if (loads[IR::Attribute::Layer]) {
AddCapability(spv::Capability::Geometry);
layer = DefineInput(*this, U32[1], false, spv::BuiltIn::Layer);
+ Decorate(layer, spv::Decoration::Flat);
}
if (loads.AnyComponent(IR::Attribute::PositionX)) {
const bool is_fragment{stage != Stage::Fragment};