diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2005-11-02 01:15:07 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2005-11-02 01:15:07 +0000 |
commit | 3a5626cb846ad767fe1c38fe35ebe4df3e3a0454 (patch) | |
tree | ea04046515c2f8c69e413416fe4baca8d1b66163 /src/mesa/drivers/dri/r300/radeon_ioctl.c | |
parent | a9b927cb6e5b4a98cf324faa2b0d61de1ce1a090 (diff) |
First step of Radeon DRI unification:
- Makes all three drivers use the same screen structure and setup code, with a
few ifdefs for the separate compilation to deal with symbols not being
available to all drivers and the fact that we have no mechanism for dealing
with different config options for different chip families in the same driver.
These issues should be dealt with later.
- Introduces IS_R[123]00_CLASS(radeonScreenPtr) macro for code for taking
different paths depending on the general class of chipset.
- Adds many new R300-class PCI IDs, though not all those listed in
radeon_driver.c.
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_ioctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_ioctl.c b/src/mesa/drivers/dri/r300/radeon_ioctl.c index 4eee2e3887..f7a217c1aa 100644 --- a/src/mesa/drivers/dri/r300/radeon_ioctl.c +++ b/src/mesa/drivers/dri/r300/radeon_ioctl.c @@ -163,7 +163,7 @@ void radeonCopyBuffer(const __DRIdrawablePrivate * dPriv) (void *)radeon->glCtx); } - if (IS_FAMILY_R200(radeon)) + if (IS_R200_CLASS(radeon->radeonScreen)) R200_FIREVERTICES((r200ContextPtr)radeon); else r300Flush(radeon->glCtx); @@ -205,7 +205,7 @@ void radeonCopyBuffer(const __DRIdrawablePrivate * dPriv) UNLOCK_HARDWARE(radeon); - if (IS_FAMILY_R200(radeon)) + if (IS_R200_CLASS(radeon->radeonScreen)) ((r200ContextPtr)radeon)->hw.all_dirty = GL_TRUE; else ((r300ContextPtr)radeon)->hw.all_dirty = GL_TRUE; @@ -239,7 +239,7 @@ void radeonPageFlip(const __DRIdrawablePrivate * dPriv) radeon->sarea->pfCurrentPage); } - if (IS_FAMILY_R200(radeon)) + if (IS_R200_CLASS(radeon->radeonScreen)) R200_FIREVERTICES((r200ContextPtr)radeon); else r300Flush(radeon->glCtx); @@ -296,7 +296,7 @@ void radeonPageFlip(const __DRIdrawablePrivate * dPriv) radeon->state.color.drawPitch = radeon->radeonScreen->backPitch; } - if (IS_FAMILY_R200(radeon)) { + if (IS_R200_CLASS(radeon->radeonScreen)) { r200ContextPtr r200 = (r200ContextPtr)radeon; R200_STATECHANGE(r200, ctx); @@ -304,7 +304,7 @@ void radeonPageFlip(const __DRIdrawablePrivate * dPriv) + radeon->radeonScreen->fbLocation; r200->hw.ctx.cmd[CTX_RB3D_COLORPITCH] = radeon->state.color.drawPitch; } - if (IS_FAMILY_R300(radeon)) { + if (IS_R300_CLASS(radeon->radeonScreen)) { r300ContextPtr r300 = (r300ContextPtr)radeon; R300_STATECHANGE(r300, cb); r300->hw.cb.cmd[R300_CB_OFFSET] = r300->radeon.state.color.drawOffset + @@ -350,7 +350,7 @@ void radeonFlush(GLcontext * ctx) { radeonContextPtr radeon = RADEON_CONTEXT(ctx); - if (IS_FAMILY_R300(radeon)) + if (IS_R300_CLASS(radeon->radeonScreen)) r300Flush(ctx); #if R200_MERGED else |