mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
gallium: initialize viewport swizzle in cso_set_viewport_dims
Fixes: dEQP-GLES2.functional.fragment_ops.depth_stencil.stencil_* and more
Fixes: 4137a79c2a ("gallium: add viewport swizzling state and cap")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4567>
This commit is contained in:
parent
1aefe78b47
commit
7e525d29ab
1 changed files with 4 additions and 0 deletions
|
|
@ -756,6 +756,10 @@ cso_set_viewport_dims(struct cso_context *ctx,
|
|||
vp.translate[0] = 0.5f * width;
|
||||
vp.translate[1] = 0.5f * height;
|
||||
vp.translate[2] = 0.5f;
|
||||
vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X;
|
||||
vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y;
|
||||
vp.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z;
|
||||
vp.swizzle_w = PIPE_VIEWPORT_SWIZZLE_POSITIVE_W;
|
||||
cso_set_viewport(ctx, &vp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue