From: Roland Scheidegger Date: Thu, 16 Oct 2008 14:23:47 +0000 (+0200) Subject: fix span issue with really old ddx and non-tcl r100 chips X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73e119363216b75243dce170f8afd5c2f9bfce50;p=mesa.git fix span issue with really old ddx and non-tcl r100 chips --- diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 05107dd2ada..5f32dd575e3 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -900,7 +900,7 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv ) screen->depthHasSurface = (sPriv->ddx_version.major > 4) || /* these chips don't use tiled z without hyperz. So always pretend we have set up a surface which will cause linear reads/writes */ - ((screen->chip_family & RADEON_CLASS_R100) && + (IS_R100_CLASS(screen) && !(screen->chip_flags & RADEON_CHIPSET_TCL)); if ( dri_priv->textureSize == 0 ) {