diff options
author | Marek Olšák <[email protected]> | 2014-11-10 00:37:03 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-11-16 01:28:28 +0100 |
commit | 2efabd9f5a711a7f6cd1846630244b7814bf25b3 (patch) | |
tree | 3907aca0e57da6f2d391ef13db4471a67f17701c /src/gallium/auxiliary/vl | |
parent | ff8042270f857e85abe2968bcab1cd742cabb496 (diff) |
gallium: remove unused pipe_viewport_state::translate[3] and scale[3]
Almost all drivers ignore them.
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_deint_filter.c | 1 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_idct.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_matrix_filter.c | 1 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mc.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_median_filter.c | 1 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_zscan.c | 2 |
7 files changed, 0 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index 6bd1a886ed4..69839e61386 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -829,9 +829,7 @@ vl_compositor_clear_layers(struct vl_compositor_state *s) s->layers[i].blend = NULL; s->layers[i].fs = NULL; s->layers[i].viewport.scale[2] = 1; - s->layers[i].viewport.scale[3] = 1; s->layers[i].viewport.translate[2] = 0; - s->layers[i].viewport.translate[3] = 0; s->layers[i].rotate = VL_COMPOSITOR_ROTATE_0; for ( j = 0; j < 3; j++) diff --git a/src/gallium/auxiliary/vl/vl_deint_filter.c b/src/gallium/auxiliary/vl/vl_deint_filter.c index a4554240f27..8fa70e84c66 100644 --- a/src/gallium/auxiliary/vl/vl_deint_filter.c +++ b/src/gallium/auxiliary/vl/vl_deint_filter.c @@ -443,7 +443,6 @@ vl_deint_filter_render(struct vl_deint_filter *filter, /* prepare viewport */ memset(&viewport, 0, sizeof(viewport)); viewport.scale[2] = 1; - viewport.scale[3] = 1; /* prepare framebuffer */ memset(&fb_state, 0, sizeof(fb_state)); diff --git a/src/gallium/auxiliary/vl/vl_idct.c b/src/gallium/auxiliary/vl/vl_idct.c index 1212e5b1bf1..948a5a403d7 100644 --- a/src/gallium/auxiliary/vl/vl_idct.c +++ b/src/gallium/auxiliary/vl/vl_idct.c @@ -609,7 +609,6 @@ init_source(struct vl_idct *idct, struct vl_idct_buffer *buffer) buffer->viewport_mismatch.scale[0] = tex->width0; buffer->viewport_mismatch.scale[1] = tex->height0; buffer->viewport_mismatch.scale[2] = 1; - buffer->viewport_mismatch.scale[3] = 1; return true; } @@ -653,7 +652,6 @@ init_intermediate(struct vl_idct *idct, struct vl_idct_buffer *buffer) buffer->viewport.scale[0] = tex->width0; buffer->viewport.scale[1] = tex->height0; buffer->viewport.scale[2] = 1; - buffer->viewport.scale[3] = 1; return true; diff --git a/src/gallium/auxiliary/vl/vl_matrix_filter.c b/src/gallium/auxiliary/vl/vl_matrix_filter.c index 6d55116c8a2..52ce4540122 100644 --- a/src/gallium/auxiliary/vl/vl_matrix_filter.c +++ b/src/gallium/auxiliary/vl/vl_matrix_filter.c @@ -296,7 +296,6 @@ vl_matrix_filter_render(struct vl_matrix_filter *filter, viewport.scale[0] = dst->width; viewport.scale[1] = dst->height; viewport.scale[2] = 1; - viewport.scale[3] = 1; memset(&fb_state, 0, sizeof(fb_state)); fb_state.width = dst->width; diff --git a/src/gallium/auxiliary/vl/vl_mc.c b/src/gallium/auxiliary/vl/vl_mc.c index 11f12326c12..6c317bbe04a 100644 --- a/src/gallium/auxiliary/vl/vl_mc.c +++ b/src/gallium/auxiliary/vl/vl_mc.c @@ -554,11 +554,9 @@ vl_mc_init_buffer(struct vl_mc *renderer, struct vl_mc_buffer *buffer) assert(renderer && buffer); buffer->viewport.scale[2] = 1; - buffer->viewport.scale[3] = 1; buffer->viewport.translate[0] = 0; buffer->viewport.translate[1] = 0; buffer->viewport.translate[2] = 0; - buffer->viewport.translate[3] = 0; buffer->fb_state.nr_cbufs = 1; buffer->fb_state.zsbuf = NULL; diff --git a/src/gallium/auxiliary/vl/vl_median_filter.c b/src/gallium/auxiliary/vl/vl_median_filter.c index a79886f4a4b..aa9a6b26485 100644 --- a/src/gallium/auxiliary/vl/vl_median_filter.c +++ b/src/gallium/auxiliary/vl/vl_median_filter.c @@ -375,7 +375,6 @@ vl_median_filter_render(struct vl_median_filter *filter, viewport.scale[0] = dst->width; viewport.scale[1] = dst->height; viewport.scale[2] = 1; - viewport.scale[3] = 1; memset(&fb_state, 0, sizeof(fb_state)); fb_state.width = dst->width; diff --git a/src/gallium/auxiliary/vl/vl_zscan.c b/src/gallium/auxiliary/vl/vl_zscan.c index 2e094810d21..1c6cdd4f2c9 100644 --- a/src/gallium/auxiliary/vl/vl_zscan.c +++ b/src/gallium/auxiliary/vl/vl_zscan.c @@ -470,11 +470,9 @@ vl_zscan_init_buffer(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, buffer->viewport.scale[0] = dst->width; buffer->viewport.scale[1] = dst->height; buffer->viewport.scale[2] = 1; - buffer->viewport.scale[3] = 1; buffer->viewport.translate[0] = 0; buffer->viewport.translate[1] = 0; buffer->viewport.translate[2] = 0; - buffer->viewport.translate[3] = 0; buffer->fb_state.width = dst->width; buffer->fb_state.height = dst->height; |