From 5c495db618b0a799533833108cc280b9921b6f01 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 27 Jul 2023 22:01:28 -0700 Subject: [PATCH] nv2a: Add [last_]surface_shape.clip_y to vmstate --- hw/xbox/nv2a/nv2a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xbox/nv2a/nv2a.c b/hw/xbox/nv2a/nv2a.c index 15f06121e2..e068f76dc9 100644 --- a/hw/xbox/nv2a/nv2a.c +++ b/hw/xbox/nv2a/nv2a.c @@ -425,7 +425,7 @@ const VMStateDescription vmstate_nv2a_pgraph_vertex_attributes = { static const VMStateDescription vmstate_nv2a = { .name = "nv2a", - .version_id = 1, + .version_id = 2, .minimum_version_id = 1, .post_save = nv2a_post_save, .post_load = nv2a_post_load, @@ -473,6 +473,7 @@ static const VMStateDescription vmstate_nv2a = { VMSTATE_UINT32(pgraph.surface_shape.log_width, NV2AState), VMSTATE_UINT32(pgraph.surface_shape.log_height, NV2AState), VMSTATE_UINT32(pgraph.surface_shape.clip_x, NV2AState), + VMSTATE_UINT32_V(pgraph.surface_shape.clip_y, NV2AState, 2), VMSTATE_UINT32(pgraph.surface_shape.clip_width, NV2AState), VMSTATE_UINT32(pgraph.surface_shape.clip_height, NV2AState), VMSTATE_UINT32(pgraph.surface_shape.anti_aliasing, NV2AState), @@ -482,6 +483,7 @@ static const VMStateDescription vmstate_nv2a = { VMSTATE_UINT32(pgraph.last_surface_shape.log_width, NV2AState), VMSTATE_UINT32(pgraph.last_surface_shape.log_height, NV2AState), VMSTATE_UINT32(pgraph.last_surface_shape.clip_x, NV2AState), + VMSTATE_UINT32_V(pgraph.last_surface_shape.clip_y, NV2AState, 2), VMSTATE_UINT32(pgraph.last_surface_shape.clip_width, NV2AState), VMSTATE_UINT32(pgraph.last_surface_shape.clip_height, NV2AState), VMSTATE_UINT32(pgraph.last_surface_shape.anti_aliasing, NV2AState),