added 2D_surface command defines (for DMA use at first).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10772 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fcc9f0ab48
commit
4bf2b3cccd
@ -82,6 +82,8 @@ enum {
|
||||
#define NV3_SURFACE_3 0x00000006 /* 3D: old cmd */
|
||||
#define NV4_CONTEXT_SURFACES_ARGB_ZS 0x00000007 /* 3D: should replace the old cmd's */
|
||||
#define NV10_CONTEXT_SURFACES_ARGB_ZS 0x00000007 /* 3D: should replace the old cmd's */
|
||||
#define NV4_SURFACE 0x00000008 /* 2D */
|
||||
#define NV10_CONTEXT_SURFACES_2D 0x00000008 /* 2D */
|
||||
#define NV1_IMAGE_FROM_CPU 0x00000010 /* 2D: unused, remove? */
|
||||
#define NV_IMAGE_BLIT 0x00000011 /* 2D */
|
||||
#define NV3_GDI_RECTANGLE_TEXT 0x00000012 /* 2D */
|
||||
|
@ -188,6 +188,19 @@ typedef struct {
|
||||
* 'ScanlineImageWriteRect' functions.)
|
||||
* Is this command actually usefull? */
|
||||
|
||||
typedef struct {
|
||||
uint32 reserved00[0x0004];
|
||||
uint16 FifoFree; /* little endian (FIFO internal register) */
|
||||
uint16 Nop; /* little endian (FIFO internal register) */
|
||||
uint32 reserved01[0x000b];
|
||||
uint32 DMAPut; /* b2-28 is DMA Put offset (FIFO internal register) */
|
||||
uint32 DMAGet; /* b2-28 is DMA Get offset (FIFO internal register) */
|
||||
uint32 reserved02[0x00ae];
|
||||
uint32 Format; /* buffer colorspace */
|
||||
uint32 Pitch; /* b0-15 is source pitch, b16-31 is dest pitch */
|
||||
uint32 OffsetSource; /* b0-31 is source bufferadress offset */
|
||||
uint32 OffsetDest; /* b0-31 is dest bufferadress offset */
|
||||
} cmd_nv4_surface; /* nv10_context_surfaces_2d is identical as far as used */
|
||||
|
||||
/************************
|
||||
* 3D specific commands *
|
||||
@ -275,5 +288,6 @@ typedef struct {
|
||||
#define NV_IMAGE_PATTERN_SETSHAPE 0x0308
|
||||
#define NV_IMAGE_PATTERN_SETCOLOR0 0x0310
|
||||
#define NV_IMAGE_BLIT_SOURCEORG 0x0300
|
||||
#define NV4_SURFACE_FORMAT 0x0300
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user