summaryrefslogtreecommitdiff
path: root/linux/mga_dma.c
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_dma.c
parent32cebaf750b82639822f5f50d0aa8a4417595ada (diff)
Initialize vertsize correctly. Add planemask arguments for color and depth
stencil clearing.
Diffstat (limited to 'linux/mga_dma.c')
-rw-r--r--linux/mga_dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/mga_dma.c b/linux/mga_dma.c
index bbfa9497..4b861220 100644
--- a/linux/mga_dma.c
+++ b/linux/mga_dma.c
@@ -388,7 +388,7 @@ void mga_fire_primary(drm_device_t *dev, drm_mga_prim_buf_t *prim)
/* We never check for overflow, b/c there is always room */
PRIMPTR(prim);
if(num_dwords <= 0) {
- DRM_DEBUG("num_dwords == 0 when dispatched\n");
+ DRM_ERROR("num_dwords == 0 when dispatched\n");
goto out_prim_wait;
}
PRIMOUTREG( MGAREG_DMAPAD, 0);
@@ -770,6 +770,7 @@ static int mga_dma_initialize(drm_device_t *dev, drm_mga_init_t *init) {
init_waitqueue_head(&dev_priv->flush_queue);
init_waitqueue_head(&dev_priv->buf_queue);
dev_priv->WarpPipe = 0xff000000;
+ dev_priv->vertexsize = 0;
DRM_DEBUG("chipset: %d ucode_size: %d backOffset: %x depthOffset: %x\n",
dev_priv->chipset, dev_priv->warp_ucode_size,