summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-12-12 00:43:43 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2019-12-12 00:53:17 +0100
commitc0ee0aa1a8266b0f5c5568cf1af3cb6247156720 (patch)
tree05f7f369b89ae7793f539350104081aacfbd2f8e /src/video_core/renderer_opengl/gl_shader_decompiler.cpp
parentShader_Ir: Correct TLD4S encoding and implement f16 flag. (diff)
downloadyuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar.gz
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar.bz2
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar.lz
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar.xz
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.tar.zst
yuzu-c0ee0aa1a8266b0f5c5568cf1af3cb6247156720.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 45c2d464f..d1ae4be6d 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1091,7 +1091,8 @@ private:
expr += "Offset";
}
expr += '(' + GetSampler(meta->sampler) + ", ";
- expr += coord_constructors.at(count + (has_array ? 1 : 0) + (has_shadow && !sepparate_dc ? 1 : 0) - 1);
+ expr += coord_constructors.at(count + (has_array ? 1 : 0) +
+ (has_shadow && !sepparate_dc ? 1 : 0) - 1);
expr += '(';
for (std::size_t i = 0; i < count; ++i) {
expr += Visit(operation[i]).AsFloat();
@@ -1712,14 +1713,13 @@ private:
const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int;
if (meta->sampler.IsShadow()) {
- return {GenerateTexture(operation, "Gather",
- {TextureAoffi{}}, true) +
+ return {GenerateTexture(operation, "Gather", {TextureAoffi{}}, true) +
GetSwizzle(meta->element),
Type::Float};
} else {
return {GenerateTexture(operation, "Gather",
{TextureAoffi{}, TextureArgument{type, meta->component}},
- true) +
+ false) +
GetSwizzle(meta->element),
Type::Float};
}