summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
commitca11beabae33eb59fb981b8adf50b1d47a2a98f0 (patch)
tree3e4691a396e6e54cd54224a190663d5cf976625b /lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c
parent27c8a50e8bbde7d28b1fc46d715a4c469e24f2c4 (diff)
Import Mesa 21.1.5
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c')
-rw-r--r--lib/mesa/src/gallium/auxiliary/postprocess/pp_init.c8
1 files changed, 6 insertions, 2 deletions
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;