Skip to content

Commit

Permalink
TextureConversionShader: fix XFB decoding shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Mar 1, 2019
1 parent 4e5702d commit 24ba3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/TextureConversionShader.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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)); 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)); 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 yComp = 1.164 * (y - 16.0);
float uComp = yuyv.g - 128.0; float uComp = yuyv.g - 128.0;
Expand Down

0 comments on commit 24ba3bf

Please sign in to comment.