From df940c0b3f02a25d78c85e08302d27558bc82e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Tue, 18 May 2021 22:33:04 +0200 Subject: [PATCH] nv2a: Add NV062_SET_COLOR_FORMAT_LE_X8R8G8B8 definition --- hw/xbox/nv2a/nv2a_regs.h | 1 + hw/xbox/nv2a/pgraph.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/xbox/nv2a/nv2a_regs.h b/hw/xbox/nv2a/nv2a_regs.h index 28bf7778cf..691f1c5f84 100644 --- a/hw/xbox/nv2a/nv2a_regs.h +++ b/hw/xbox/nv2a/nv2a_regs.h @@ -750,6 +750,7 @@ # define NV062_SET_COLOR_FORMAT 0x00000300 # define NV062_SET_COLOR_FORMAT_LE_Y8 0x01 # define NV062_SET_COLOR_FORMAT_LE_R5G6B5 0x04 +# define NV062_SET_COLOR_FORMAT_LE_X8R8G8B8 0x07 # define NV062_SET_COLOR_FORMAT_LE_A8R8G8B8 0x0A # define NV062_SET_PITCH 0x00000304 # define NV062_SET_OFFSET_SOURCE 0x00000308 diff --git a/hw/xbox/nv2a/pgraph.c b/hw/xbox/nv2a/pgraph.c index 0e234543a7..a0fb982503 100644 --- a/hw/xbox/nv2a/pgraph.c +++ b/hw/xbox/nv2a/pgraph.c @@ -845,6 +845,7 @@ int pgraph_method(NV2AState *d, unsigned int subchannel, bytes_per_pixel = 2; break; case NV062_SET_COLOR_FORMAT_LE_A8R8G8B8: + case NV062_SET_COLOR_FORMAT_LE_X8R8G8B8: bytes_per_pixel = 4; break; default: