Merge pull request #7836 from Tilka/fix_xfb

TextureConversionShader: fix XFB decoding shader
This commit is contained in:
Connor McLaughlin 2019-03-02 12:31:39 +10:00 committed by GitHub
commit 1d80ab33ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;