nv2a: Ignore pitch check for swizzled textures

This commit is contained in:
Erik Abair 2022-07-18 17:31:31 -07:00 committed by mborgerson
parent 1e221e8da9
commit 248fc788c1
1 changed files with 1 additions and 1 deletions

View File

@ -5354,7 +5354,7 @@ static bool pgraph_check_surface_to_texture_compatibility(
{
// FIXME: Better checks/handling on formats and surface-texture compat
if (surface->pitch != shape->pitch ||
if ((!surface->swizzle && surface->pitch != shape->pitch) ||
surface->width != shape->width ||
surface->height != shape->height) {
return false;