diff --git a/hw/xbox/nv2a/pgraph.c b/hw/xbox/nv2a/pgraph.c index 6c184ff67f..c2ed972b31 100644 --- a/hw/xbox/nv2a/pgraph.c +++ b/hw/xbox/nv2a/pgraph.c @@ -5758,8 +5758,10 @@ static void pgraph_populate_surface_binding_entry(NV2AState *d, bool color, /* Since we determine surface dimensions based on the clipping * rectangle, make sure to include the surface offset as well. */ - width += pg->surface_shape.clip_x; - height += pg->surface_shape.clip_y; + if (pg->surface_type != NV097_SET_SURFACE_FORMAT_TYPE_SWIZZLE) { + width += pg->surface_shape.clip_x; + height += pg->surface_shape.clip_y; + } } else { width = pg->color_binding->width; height = pg->color_binding->height;