From: Emil Velikov Date: Wed, 20 Aug 2014 19:52:07 +0000 (+0100) Subject: dri/radeon: nuke the remaining references to sarea X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7f2f2dea5acdbd1a12ed88914e64a38a97432f0;p=mesa.git dri/radeon: nuke the remaining references to sarea Remainder of the dri1 times. Cc: Marek Olšák Cc: Michel Dänzer Signed-off-by: Emil Velikov Reviewed-by: Michel Dänzer --- diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c index ef0d63757d2..515be926ea2 100644 --- a/src/mesa/drivers/dri/r200/r200_ioctl.c +++ b/src/mesa/drivers/dri/r200/r200_ioctl.c @@ -62,13 +62,6 @@ static void r200Clear( struct gl_context *ctx, GLbitfield mask ) BUFFER_BIT_DEPTH | BUFFER_BIT_STENCIL | BUFFER_BIT_COLOR0; - if ( R200_DEBUG & RADEON_IOCTL ) { - if (rmesa->radeon.sarea) - fprintf( stderr, "r200Clear %x %d\n", mask, rmesa->radeon.sarea->pfCurrentPage); - else - fprintf( stderr, "r200Clear %x radeon->sarea is NULL\n", mask); - } - radeonFlush( ctx ); hwmask = mask & hwbits; diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index 8330b177c10..cfed40860ef 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -406,7 +406,6 @@ struct radeon_context { /* Drawable information */ unsigned int lastStamp; - drm_radeon_sarea_t *sarea; /* Private SAREA data */ /* Mirrors of some DRI state */ struct radeon_dri_mirror dri; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.h b/src/mesa/drivers/dri/radeon/radeon_screen.h index b5cc075bbad..b3e926798cf 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.h +++ b/src/mesa/drivers/dri/radeon/radeon_screen.h @@ -45,7 +45,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "dri_util.h" #include "radeon_chipset.h" #include "radeon_reg.h" -#include "drm_sarea.h" #include "xmlconfig.h" @@ -88,7 +87,6 @@ typedef struct radeon_screen { __volatile__ uint32_t *scratch; __DRIscreen *driScreen; - unsigned int sarea_priv_offset; unsigned int gart_buffer_offset; /* offset in card memory space */ unsigned int gart_texture_offset; /* offset in card memory space */ unsigned int gart_base; @@ -100,7 +98,6 @@ typedef struct radeon_screen { int num_gb_pipes; int num_z_pipes; - drm_radeon_sarea_t *sarea; /* Private SAREA data */ struct radeon_bo_manager *bom; } radeonScreenRec, *radeonScreenPtr;