From ca11beabae33eb59fb981b8adf50b1d47a2a98f0 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 22 Jul 2021 10:17:30 +0000 Subject: Import Mesa 21.1.5 --- lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c') diff --git a/lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c b/lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c index 2c830e81b..bbab41b91 100644 --- a/lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c +++ b/lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c @@ -40,7 +40,7 @@ /** Initialize the post-processing queue. */ struct pp_queue_t * pp_init(struct pipe_context *pipe, const unsigned int *enabled, - struct cso_context *cso) + struct cso_context *cso, struct st_context_iface *st) { unsigned int num_filters = 0; unsigned int curpos = 0, i, tmp_req = 0; @@ -78,7 +78,7 @@ pp_init(struct pipe_context *pipe, const unsigned int *enabled, goto error; } - ppq->p = pp_init_prog(ppq, pipe, cso); + ppq->p = pp_init_prog(ppq, pipe, cso, st); if (ppq->p == NULL) { pp_debug("pp_init_prog returned NULL.\n"); goto error; @@ -324,6 +324,10 @@ pp_init_fbos(struct pp_queue_t *ppq, unsigned int w, p->viewport.scale[0] = p->viewport.translate[0] = (float) w / 2.0f; p->viewport.scale[1] = p->viewport.translate[1] = (float) h / 2.0f; + p->viewport.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; + p->viewport.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; + p->viewport.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; + p->viewport.swizzle_w = PIPE_VIEWPORT_SWIZZLE_POSITIVE_W; ppq->fbos_init = true; -- cgit v1.2.3