nv2a: Support NV062_SET_COLOR_FORMAT_LE_Y32 blitting

This commit is contained in:
Mike Davis 2021-07-18 23:35:43 -05:00 committed by mborgerson
parent cc6d19e099
commit 0b9a2e1a8f
2 changed files with 2 additions and 0 deletions

View File

@ -756,6 +756,7 @@
# 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_COLOR_FORMAT_LE_Y32 0x0B
# define NV062_SET_PITCH 0x00000304
# define NV062_SET_OFFSET_SOURCE 0x00000308
# define NV062_SET_OFFSET_DESTIN 0x0000030C

View File

@ -862,6 +862,7 @@ int pgraph_method(NV2AState *d, unsigned int subchannel,
break;
case NV062_SET_COLOR_FORMAT_LE_A8R8G8B8:
case NV062_SET_COLOR_FORMAT_LE_X8R8G8B8:
case NV062_SET_COLOR_FORMAT_LE_Y32:
bytes_per_pixel = 4;
break;
default: