summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 08:25:00 +0200
committerbunnei <bunneidev@gmail.com>2018-08-08 08:35:59 +0200
commit7f0d0a93f74c4a1a76281ccdd4b985e50b89d440 (patch)
tree20a399ea3621e42fd865bb68294313ec96fde3b0
parentMerge pull request #964 from Hexagon12/lower-logs (diff)
downloadyuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar.gz
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar.bz2
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar.lz
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar.xz
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.tar.zst
yuzu-7f0d0a93f74c4a1a76281ccdd4b985e50b89d440.zip
-rw-r--r--src/video_core/engines/shader_bytecode.h2
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index c7e3fb4b1..42147588c 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -78,6 +78,8 @@ union Attribute {
// shader, and a tuple of (TessCoord.x, TessCoord.y, TessCoord.z, ~) when inside a Tess Eval
// shader.
TessCoordInstanceIDVertexID = 47,
+ // TODO(bunnei): Figure out what this is used for. Super Mario Odyssey uses this.
+ Unknown_63 = 63,
};
union {
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index e3217db81..724512000 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -523,6 +523,11 @@ private:
// shader.
ASSERT(stage == Maxwell3D::Regs::ShaderStage::Vertex);
return "vec4(0, 0, uintBitsToFloat(gl_InstanceID), uintBitsToFloat(gl_VertexID))";
+ case Attribute::Index::Unknown_63:
+ // TODO(bunnei): Figure out what this is used for. Super Mario Odyssey uses this.
+ LOG_CRITICAL(HW_GPU, "Unhandled input attribute Unknown_63");
+ UNREACHABLE();
+ break;
default:
const u32 index{static_cast<u32>(attribute) -
static_cast<u32>(Attribute::Index::Attribute_0)};
@@ -534,6 +539,8 @@ private:
LOG_CRITICAL(HW_GPU, "Unhandled input attribute: {}", index);
UNREACHABLE();
}
+
+ return "vec4(0, 0, 0, 0)";
}
/// Generates code representing an output attribute register.