Skip to content

Commit

Permalink
nv2a: Ignore pitch check for swizzled textures
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire authored and mborgerson committed Jul 19, 2022
1 parent 1e221e8 commit 248fc78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xbox/nv2a/pgraph.c
Expand Up @@ -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;
Expand Down

0 comments on commit 248fc78

Please sign in to comment.