r600g: Remove unused variable.
authorVinson Lee <vlee@vmware.com>
Sat, 25 Sep 2010 06:17:55 +0000 (23:17 -0700)
committerVinson Lee <vlee@vmware.com>
Sat, 25 Sep 2010 06:17:55 +0000 (23:17 -0700)
Fixes this GCC warning.
eg_hw_states.c: In function 'eg_resource':
eg_hw_states.c:525: warning: unused variable 'r'

src/gallium/drivers/r600/eg_hw_states.c

index d545db262955854b6a7827363cac84a2f62360b5..7ba53fefb5d15e432de609c09cd54d5ad33ca937 100644 (file)
@@ -522,7 +522,6 @@ static void eg_resource(struct pipe_context *ctx, struct radeon_state *rstate,
        unsigned format;
        uint32_t word4 = 0, yuv_format = 0, pitch = 0;
        unsigned char swizzle[4];
-       int r;
 
        rstate->cpm4 = 0;
        swizzle[0] = view->swizzle_r;