nv2a: Add NV062_SET_COLOR_FORMAT_LE_X8R8G8B8 definition

This commit is contained in:
Josef Šimánek 2021-05-18 22:33:04 +02:00 committed by Matt Borgerson
parent dbc73bbd82
commit df940c0b3f
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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: