From 248fc788c177e7b01ec1455b2005ee339332edbf Mon Sep 17 00:00:00 2001 From: Erik Abair Date: Mon, 18 Jul 2022 17:31:31 -0700 Subject: [PATCH] nv2a: Ignore pitch check for swizzled textures --- hw/xbox/nv2a/pgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a/pgraph.c b/hw/xbox/nv2a/pgraph.c index 7d0e7e460d..81aab293ba 100644 --- a/hw/xbox/nv2a/pgraph.c +++ b/hw/xbox/nv2a/pgraph.c @@ -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;