gallium/u_blitter: Fix depth.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 8 Jun 2022 18:13:24 +0000 (20:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Jun 2022 15:44:54 +0000 (15:44 +0000)
commit810135fb428a2505eba490b4d17a33629820e4e5
treea39462b8763d8633d776642bcf64c499f486478c
parentee491967c3c9922e9be32df5c956388c6e006b43
gallium/u_blitter: Fix depth.

Fix the transform to make sure it doesn't disturb the depth range
of the blitted image. Set the Z coordinates of the vertices
by hand instead of relying on the transform to do it.

This is a pre-requisite to Zink always enabling depth clamping.

Fixes: 26c6640835936a77d87030ce8e90f9b9f5be783e
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16929>
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/lima/ci/lima-fails.txt