nv2a: Drop surface compat clip constraint

This commit is contained in:
Matt Borgerson 2025-03-13 21:11:59 -07:00 committed by mborgerson
parent c3a8b9569f
commit b929d4eced
2 changed files with 2 additions and 6 deletions

View File

@ -582,9 +582,7 @@ static bool check_surface_compatibility(SurfaceBinding *s1, SurfaceBinding *s2,
(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->shape.clip_x <= s2->shape.clip_x) &&
(s1->shape.clip_y <= s2->shape.clip_y);
(s1->pitch == s2->pitch);
if (!format_compatible) {
return false;
}

View File

@ -890,9 +890,7 @@ static bool check_surface_compatibility(SurfaceBinding const *s1,
bool format_compatible =
(s1->color == s2->color) &&
(s1->host_fmt.vk_format == s2->host_fmt.vk_format) &&
(s1->pitch == s2->pitch) &&
(s1->shape.clip_x <= s2->shape.clip_x) &&
(s1->shape.clip_y <= s2->shape.clip_y);
(s1->pitch == s2->pitch);
if (!format_compatible) {
return false;
}