nv2a: Add swizzle to surface compat check

This commit is contained in:
Matt Borgerson 2021-07-20 03:00:27 -07:00 committed by mborgerson
parent 5ec33df112
commit 59d3bfe268
1 changed files with 2 additions and 1 deletions

View File

@ -4882,7 +4882,8 @@ static bool pgraph_check_surface_compatibility(SurfaceBinding *s1,
(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->shape.clip_y <= s2->shape.clip_y) &&
(s1->swizzle == s2->swizzle);
if (!format_compatible) {
return false;
}