radeon: Remove some remaining set-but-unused variables.
These looked more like copy-and-paste to me than the others (which looked more like possibly someone forgot to write some code in a refactor), so I didn't verify where they came from.
This commit is contained in:
@@ -259,13 +259,11 @@ static int r600_cs_process_relocs(struct radeon_cs_int *csi,
|
||||
uint32_t * reloc_chunk,
|
||||
uint32_t * length_dw_reloc_chunk)
|
||||
{
|
||||
struct r600_cs_manager_legacy *csm = (struct r600_cs_manager_legacy*)csi->csm;
|
||||
struct r600_cs_reloc_legacy *relocs;
|
||||
int i, j, r;
|
||||
|
||||
uint32_t offset_dw = 0;
|
||||
|
||||
csm = (struct r600_cs_manager_legacy*)csi->csm;
|
||||
relocs = (struct r600_cs_reloc_legacy *)csi->relocs;
|
||||
restart:
|
||||
for (i = 0; i < csi->crelocs; i++) {
|
||||
|
||||
@@ -436,7 +436,6 @@ void radeonCopyBuffer( __DRIdrawable *dPriv,
|
||||
const drm_clip_rect_t *rect)
|
||||
{
|
||||
radeonContextPtr rmesa;
|
||||
struct radeon_framebuffer *rfb;
|
||||
GLint nbox, i, ret;
|
||||
|
||||
assert(dPriv);
|
||||
@@ -447,8 +446,6 @@ void radeonCopyBuffer( __DRIdrawable *dPriv,
|
||||
|
||||
LOCK_HARDWARE(rmesa);
|
||||
|
||||
rfb = dPriv->driverPrivate;
|
||||
|
||||
if ( RADEON_DEBUG & RADEON_IOCTL ) {
|
||||
fprintf( stderr, "\n%s( %p )\n\n", __FUNCTION__, (void *) rmesa->glCtx );
|
||||
}
|
||||
@@ -527,8 +524,6 @@ static GLboolean radeonPageFlip( __DRIdrawable *dPriv )
|
||||
{
|
||||
radeonContextPtr radeon;
|
||||
GLint ret;
|
||||
__DRIscreen *psp;
|
||||
struct radeon_renderbuffer *rrb;
|
||||
struct radeon_framebuffer *rfb;
|
||||
|
||||
assert(dPriv);
|
||||
@@ -537,9 +532,6 @@ static GLboolean radeonPageFlip( __DRIdrawable *dPriv )
|
||||
|
||||
radeon = (radeonContextPtr) dPriv->driContextPriv->driverPrivate;
|
||||
rfb = dPriv->driverPrivate;
|
||||
rrb = (void *)rfb->base.Attachment[BUFFER_FRONT_LEFT].Renderbuffer;
|
||||
|
||||
psp = dPriv->driScreenPriv;
|
||||
|
||||
LOCK_HARDWARE(radeon);
|
||||
|
||||
|
||||
@@ -515,7 +515,6 @@ void radeon_prepare_render(radeonContextPtr radeon)
|
||||
__DRIcontext *driContext = radeon->dri.context;
|
||||
__DRIdrawable *drawable;
|
||||
__DRIscreen *screen;
|
||||
struct radeon_framebuffer *draw;
|
||||
|
||||
screen = driContext->driScreenPriv;
|
||||
if (!screen->dri2.loader)
|
||||
@@ -527,7 +526,6 @@ void radeon_prepare_render(radeonContextPtr radeon)
|
||||
radeon_update_renderbuffers(driContext, drawable, GL_FALSE);
|
||||
|
||||
/* Intel driver does the equivalent of this, no clue if it is needed:*/
|
||||
draw = drawable->driverPrivate;
|
||||
radeon_draw_buffer(radeon->glCtx, radeon->glCtx->DrawBuffer);
|
||||
|
||||
driContext->dri2.draw_stamp = drawable->dri2.stamp;
|
||||
|
||||
@@ -218,11 +218,9 @@ static int cs_end(struct radeon_cs_int *cs,
|
||||
|
||||
static int cs_process_relocs(struct radeon_cs_int *cs)
|
||||
{
|
||||
struct cs_manager_legacy *csm = (struct cs_manager_legacy*)cs->csm;
|
||||
struct cs_reloc_legacy *relocs;
|
||||
int i, j, r;
|
||||
|
||||
csm = (struct cs_manager_legacy*)cs->csm;
|
||||
relocs = (struct cs_reloc_legacy *)cs->relocs;
|
||||
restart:
|
||||
for (i = 0; i < cs->crelocs; i++)
|
||||
|
||||
Reference in New Issue
Block a user