diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2004-06-22 15:12:42 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2004-06-22 15:12:42 +0000 |
commit | b7310758e60956a7de14dcf968bb713dfc56738f (patch) | |
tree | 20dac65b3dbaf6a32694fdf66e2e210e132e1864 /src/i830_common.h | |
parent | 5ed7e6f8424236dd57d83f6ab1282693260969cb (diff) |
add CmdBuffer
Diffstat (limited to 'src/i830_common.h')
-rw-r--r-- | src/i830_common.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/i830_common.h b/src/i830_common.h index 4328baa9..c5167c11 100644 --- a/src/i830_common.h +++ b/src/i830_common.h @@ -106,7 +106,15 @@ typedef struct { drm_clip_rect_t *cliprects; /* pointer to userspace cliprects */ } drmI830BatchBuffer; - +typedef struct { + char *buf; /* agp offset */ + int sz; /* nr bytes in use */ + int DR1; /* hw flags for GFX_OP_DRAWRECT_INFO */ + int DR4; /* window origin for GFX_OP_DRAWRECT_INFO*/ + int num_cliprects; /* mulitpass with multiple cliprects? */ + drm_clip_rect_t *cliprects; /* pointer to userspace cliprects */ +} drmI830CmdBuffer; + typedef struct { int *irq_seq; } drmI830IrqEmit; @@ -121,8 +129,7 @@ typedef struct { } drmI830GetParam; #define I830_PARAM_IRQ_ACTIVE 1 -#define I830_PARAM_LAST_ENQUEUE 2 -#define I830_PARAM_LAST_DEQUEUE 3 +#define I830_PARAM_ALLOW_BATCHBUFFER 2 typedef struct { int param; @@ -131,6 +138,7 @@ typedef struct { #define I830_SETPARAM_USE_MI_BATCHBUFFER_START 1 #define I830_SETPARAM_TEX_LRU_LOG_GRANULARITY 2 +#define I830_SETPARAM_ALLOW_BATCHBUFFER 3 /* A memory manager for regions of shared memory: |