diff options
author | Ben Skeggs <[email protected]> | 2005-02-11 05:59:13 +0000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2005-02-11 05:59:13 +0000 |
commit | 2d10924a14c439376816c5398cecd46e940482fd (patch) | |
tree | 2ab7b47029084a0471a12435e4521d69267307f6 /src/mesa/drivers/dri/r300/r300_ioctl.c | |
parent | 4837ea30208d002bc36a836d2117f826d40c8bfa (diff) |
Port of r200 VB code. VB path should be as fast as the immediate path now, tuxracer should render correctly. Immediate path was left enabled.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c index 6ba5bf257aa..8b022067f26 100644 --- a/src/mesa/drivers/dri/r300/r300_ioctl.c +++ b/src/mesa/drivers/dri/r300/r300_ioctl.c @@ -453,13 +453,13 @@ void r300ReleaseDmaRegion(r300ContextPtr rmesa, if (RADEON_DEBUG & (DEBUG_IOCTL | DEBUG_DMA)) fprintf(stderr, "%s -- DISCARD BUF %d\n", __FUNCTION__, region->buf->buf->idx); - cmd = (drm_radeon_cmd_header_t *) r300AllocCmdBuf(rmesa, - sizeof(*cmd), + sizeof(*cmd) / 4, __FUNCTION__); - cmd->dma.cmd_type = RADEON_CMD_DMA_DISCARD; + cmd->dma.cmd_type = R300_CMD_DMA_DISCARD; cmd->dma.buf_idx = region->buf->buf->idx; + FREE(region->buf); rmesa->dma.nr_released_bufs++; } |