nv2a: Ignore pitch check for swizzled textures

This commit is contained in:
Erik Abair
2022-07-18 18:03:48 -07:00
committed by mborgerson
parent 1e221e8da9
commit 248fc788c1
+1 -1
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;