aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/radeon_state.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2005-11-02 01:15:07 +0000
committerEric Anholt <[email protected]>2005-11-02 01:15:07 +0000
commit3a5626cb846ad767fe1c38fe35ebe4df3e3a0454 (patch)
treeea04046515c2f8c69e413416fe4baca8d1b66163 /src/mesa/drivers/dri/r300/radeon_state.c
parenta9b927cb6e5b4a98cf324faa2b0d61de1ce1a090 (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_state.c')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_state.c b/src/mesa/drivers/dri/r300/radeon_state.c
index 7b64b34ed18..9171981e8c4 100644
--- a/src/mesa/drivers/dri/r300/radeon_state.c
+++ b/src/mesa/drivers/dri/r300/radeon_state.c
@@ -142,7 +142,7 @@ static void radeonScissor(GLcontext* ctx, GLint x, GLint y, GLsizei w, GLsizei h
if (ctx->Scissor.Enabled) {
/* We don't pipeline cliprect changes */
- if (IS_FAMILY_R200(radeon))
+ if (IS_R200_CLASS(radeon->radeonScreen))
R200_FIREVERTICES((r200ContextPtr)radeon);
else
r300Flush(ctx);
@@ -198,7 +198,7 @@ void radeonEnable(GLcontext* ctx, GLenum cap, GLboolean state)
switch(cap) {
case GL_SCISSOR_TEST:
/* We don't pipeline cliprect & scissor changes */
- if (IS_FAMILY_R200(radeon))
+ if (IS_R200_CLASS(radeon->radeonScreen))
R200_FIREVERTICES((r200ContextPtr)radeon);
else
r300Flush(ctx);