llvmpipe/blit: for 32-bit unorm depth blits just copy 32-bit
authorDave Airlie <airlied@redhat.com>
Mon, 20 Jul 2020 03:41:34 +0000 (13:41 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Aug 2020 20:12:40 +0000 (20:12 +0000)
commit2e40b2c15503759b7320c79bfe7ae9b9dadfb43f
treed3d0458495a5a58dbfff54bbdf83fb875737db8d
parent18e464cfc05cdae59af8d00f214a6477a72b8ac7
llvmpipe/blit: for 32-bit unorm depth blits just copy 32-bit

Don't have the shader do a 32-bit unorn to float conversion,
the values don't remain accurate then.

Fixes:
GTF-GL45.gtf30.GL3Tests.framebuffer_blit.framebuffer_blit_functionality_multisampled_to_singlesampled_blit
for 32-bit unorm depth buffers.

Cc: "20.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6044>
src/gallium/drivers/llvmpipe/lp_surface.c