nv2a: Minimize clip origin for compatible surfaces

This commit is contained in:
Matt Borgerson 2021-07-02 16:39:18 -07:00 committed by mborgerson
parent aaf8522431
commit 473179b9f4
1 changed files with 3 additions and 1 deletions

View File

@ -4664,7 +4664,9 @@ static bool pgraph_check_surface_compatibility(SurfaceBinding *s1,
(s1->color == s2->color) &&
(s1->fmt.gl_attachment == s2->fmt.gl_attachment) &&
(s1->fmt.gl_internal_format == s2->fmt.gl_internal_format) &&
(s1->pitch == s2->pitch);
(s1->pitch == s2->pitch) &&
(s1->shape.clip_x <= s2->shape.clip_x) &&
(s1->shape.clip_y <= s2->shape.clip_y);
if (!format_compatible) {
return false;
}