summaryrefslogtreecommitdiff
path: root/linux/mga_drv.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-08-30 22:34:28 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-08-30 22:34:28 +0000
commit926349534d4a20b8dc4f795e41055540ad48d112 (patch)
tree2b0e678708ba7dc3a625abdb625989dc609bfef9 /linux/mga_drv.h
parent32cebaf750b82639822f5f50d0aa8a4417595ada (diff)
Initialize vertsize correctly. Add planemask arguments for color and depth
stencil clearing.
Diffstat (limited to 'linux/mga_drv.h')
-rw-r--r--linux/mga_drv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/mga_drv.h b/linux/mga_drv.h
index f49bd0f6..0a6a13b6 100644
--- a/linux/mga_drv.h
+++ b/linux/mga_drv.h
@@ -82,6 +82,7 @@ typedef struct _drm_mga_private {
int use_agp;
drm_mga_warp_index_t WarpIndex[MGA_MAX_G400_PIPES];
unsigned int WarpPipe;
+ unsigned int vertexsize;
atomic_t pending_bufs;
void *status_page;
unsigned long real_status_page;
@@ -212,13 +213,12 @@ typedef struct {
#define PRIM_OVERFLOW(dev, dev_priv, length) do { \
drm_mga_prim_buf_t *tmp_buf = \
dev_priv->prim_bufs[dev_priv->current_prim_idx]; \
- if( test_bit(MGA_BUF_NEEDS_OVERFLOW, \
- &tmp_buf->buffer_status)) { \
+ if( test_bit(MGA_BUF_NEEDS_OVERFLOW, &tmp_buf->buffer_status)) { \
mga_advance_primary(dev); \
mga_dma_schedule(dev, 1); \
tmp_buf = dev_priv->prim_bufs[dev_priv->current_prim_idx]; \
} else if( tmp_buf->max_dwords - tmp_buf->num_dwords < length || \
- tmp_buf->sec_used > MGA_DMA_BUF_NR/2) { \
+ tmp_buf->sec_used > MGA_DMA_BUF_NR/2) { \
set_bit(MGA_BUF_FORCE_FIRE, &tmp_buf->buffer_status); \
mga_advance_primary(dev); \
mga_dma_schedule(dev, 1); \