Skip to content
Permalink
Browse files

Merge pull request #7836 from Tilka/fix_xfb

TextureConversionShader: fix XFB decoding shader
  • Loading branch information...
stenzek committed Mar 2, 2019
2 parents 4e5702d + 24ba3bf commit 1d80ab33ad8ceea109ef5f127168252b43dbe6a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/VideoCommon/TextureConversionShader.cpp
@@ -1345,7 +1345,7 @@ static const std::map<TextureFormat, DecodingShaderInfo> s_decoding_shader_info{
int buffer_pos = int(u_src_offset + (uv.y * u_src_row_stride) + (uv.x / 2u));
float4 yuyv = float4(texelFetch(s_input_buffer, buffer_pos));
float y = (uv.x & 1u) != 0u ? yuyv.r : yuyv.g;
float y = (uv.x & 1u) != 0u ? yuyv.b : yuyv.r;
float yComp = 1.164 * (y - 16.0);
float uComp = yuyv.g - 128.0;

0 comments on commit 1d80ab3

Please sign in to comment.
You can’t perform that action at this time.