diff options
author | Marek Olšák <[email protected]> | 2017-10-05 02:08:05 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-07 18:26:35 +0200 |
commit | 7f8af4624d5e77b1ff4779a361930cadb3ab38ba (patch) | |
tree | 9c72817828d437bdd470406b6d38c7a2eafad2a9 /src/gallium/auxiliary/util | |
parent | f84a63bc0022ea72c122b96344cd5f88034d9b62 (diff) |
gallium/u_blitter: remove blitter_context_priv::viewport
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 65938c52342..9153ae139b2 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -125,9 +125,6 @@ struct blitter_context_priv /* Rasterizer state. */ void *rs_state, *rs_state_scissor, *rs_discard_state; - /* Viewport state. */ - struct pipe_viewport_state viewport; - /* Destination surface dimensions. */ unsigned dst_width; unsigned dst_height; @@ -751,13 +748,14 @@ static void blitter_set_rectangle(struct blitter_context_priv *ctx, ctx->vertices[i][0][2] = depth; /*z*/ /* viewport */ - ctx->viewport.scale[0] = 0.5f * ctx->dst_width; - ctx->viewport.scale[1] = 0.5f * ctx->dst_height; - ctx->viewport.scale[2] = 1.0f; - ctx->viewport.translate[0] = 0.5f * ctx->dst_width; - ctx->viewport.translate[1] = 0.5f * ctx->dst_height; - ctx->viewport.translate[2] = 0.0f; - ctx->base.pipe->set_viewport_states(ctx->base.pipe, 0, 1, &ctx->viewport); + struct pipe_viewport_state viewport; + viewport.scale[0] = 0.5f * ctx->dst_width; + viewport.scale[1] = 0.5f * ctx->dst_height; + viewport.scale[2] = 1.0f; + viewport.translate[0] = 0.5f * ctx->dst_width; + viewport.translate[1] = 0.5f * ctx->dst_height; + viewport.translate[2] = 0.0f; + ctx->base.pipe->set_viewport_states(ctx->base.pipe, 0, 1, &viewport); } static void blitter_set_clear_color(struct blitter_context_priv *ctx, |