From: Dave Airlie Date: Tue, 17 Feb 2009 03:39:38 +0000 (+1000) Subject: radeon/r200: fixup texturing aging calls X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48e7b940ebc2cb3594074ca35fad9c63f6568582;p=mesa.git radeon/r200: fixup texturing aging calls --- diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index d567bb77df9..a9cb2e2fe91 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -246,11 +246,10 @@ static void r200_get_lock(radeonContextPtr radeon) if ( sarea->ctx_owner != rmesa->radeon.dri.hwContext ) { sarea->ctx_owner = rmesa->radeon.dri.hwContext; + if (!radeon->radeonScreen->kernel_mm) + radeon_bo_legacy_texture_age(radeon->radeonScreen->bom); } - for ( i = 0 ; i < rmesa->radeon.nr_heaps ; i++ ) { - DRI_AGE_TEXTURES( rmesa->radeon.texture_heaps[ i ] ); - } } static void r200_vtbl_emit_cs_header(struct radeon_cs *cs, radeonContextPtr rmesa) diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index 7db62be7afd..f562876db4b 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -164,9 +164,8 @@ static void r100_get_lock(radeonContextPtr radeon) int i; sarea->ctx_owner = rmesa->radeon.dri.hwContext; - for (i = 0; i < rmesa->radeon.nr_heaps; i++) { - DRI_AGE_TEXTURES(rmesa->radeon.texture_heaps[i]); - } + if (!radeon->radeonScreen->kernel_mm) + radeon_bo_legacy_texture_age(radeon->radeonScreen->bom); } }