From 93f7a4113ece8913d0f0cc4ea5ea29d177e683f7 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 7 May 2019 09:42:42 +0200 Subject: [PATCH] vrend: remove unused members These two members are written, but never read. Let's get rid of them. This has the nice side-benefit of eliminating a warning, because of an implicit cast. Signed-off-by: Erik Faye-Lund Reviewed-By: Gert Wollny Reviewed-by: Chia-I Wu --- src/vrend_renderer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 50ae303..fa5ac97 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -534,7 +534,6 @@ struct vrend_sub_context { struct vrend_surface *surf[PIPE_MAX_COLOR_BUFS]; struct vrend_viewport vps[PIPE_MAX_VIEWPORTS]; - float depth_transform, depth_scale; /* viewport is negative */ uint32_t scissor_state_dirty; uint32_t viewport_state_dirty; @@ -2382,9 +2381,6 @@ void vrend_set_viewport_states(struct vrend_context *ctx, if (idx == 0) { if (ctx->sub->viewport_is_negative != viewport_is_negative) ctx->sub->viewport_is_negative = viewport_is_negative; - - ctx->sub->depth_scale = fabsf(far_val - near_val); - ctx->sub->depth_transform = near_val; } if (ctx->sub->vps[idx].near_val != near_val ||