Commit d80d4c4b by Alexis Hetu Committed by Alexis Hétu

Filtering fix for out of bounds blit

Removed a conversion to integer which was removing all subpixel precision from coordinates when using clampToEdge. Passes all out of bounds cases (this cl should only affect these cases). Fixes: dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_linear_out_of_bounds_blit_from_default Change-Id: Id7cef212ea2b739ef22148779dbc1228628e4440 Reviewed-on: https://swiftshader-review.googlesource.com/15988Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent d0a459fb
......@@ -1315,8 +1315,8 @@ namespace sw
if(state.clampToEdge)
{
X = Float(Clamp(Int(x), 0, sWidth - 1));
Y = Float(Clamp(Int(y), 0, sHeight - 1));
X = Min(Max(x, 0.5f), Float(sWidth) - 0.5f);
Y = Min(Max(y, 0.5f), Float(sHeight) - 0.5f);
}
Float x0 = X - 0.5f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment