mirror of https://github.com/xemu-project/xemu.git
Support blit surface format 0x4
This commit is contained in:
parent
5cf813119e
commit
75a0994ec1
|
@ -2813,6 +2813,9 @@ static void pgraph_method(NV2AState *d,
|
||||||
case NV062_SET_COLOR_FORMAT_LE_Y8:
|
case NV062_SET_COLOR_FORMAT_LE_Y8:
|
||||||
bytes_per_pixel = 1;
|
bytes_per_pixel = 1;
|
||||||
break;
|
break;
|
||||||
|
case NV062_SET_COLOR_FORMAT_LE_R5G6B5:
|
||||||
|
bytes_per_pixel = 2;
|
||||||
|
break;
|
||||||
case NV062_SET_COLOR_FORMAT_LE_A8R8G8B8:
|
case NV062_SET_COLOR_FORMAT_LE_A8R8G8B8:
|
||||||
bytes_per_pixel = 4;
|
bytes_per_pixel = 4;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -670,6 +670,7 @@
|
||||||
# define NV062_SET_CONTEXT_DMA_IMAGE_DESTIN 0x00000188
|
# define NV062_SET_CONTEXT_DMA_IMAGE_DESTIN 0x00000188
|
||||||
# define NV062_SET_COLOR_FORMAT 0x00000300
|
# define NV062_SET_COLOR_FORMAT 0x00000300
|
||||||
# define NV062_SET_COLOR_FORMAT_LE_Y8 0x01
|
# define NV062_SET_COLOR_FORMAT_LE_Y8 0x01
|
||||||
|
# define NV062_SET_COLOR_FORMAT_LE_R5G6B5 0x04
|
||||||
# define NV062_SET_COLOR_FORMAT_LE_A8R8G8B8 0x0A
|
# define NV062_SET_COLOR_FORMAT_LE_A8R8G8B8 0x0A
|
||||||
# define NV062_SET_PITCH 0x00000304
|
# define NV062_SET_PITCH 0x00000304
|
||||||
# define NV062_SET_OFFSET_SOURCE 0x00000308
|
# define NV062_SET_OFFSET_SOURCE 0x00000308
|
||||||
|
|
Loading…
Reference in New Issue