pvr: Improve support for image clears
authorJames Glanville <james.glanville@imgtec.com>
Tue, 25 Apr 2023 21:41:51 +0000 (22:41 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 08:33:26 +0000 (08:33 +0000)
commitddd3c66f5390b9e6b9aa84a2f15c05886ebaf455
tree69afaf5c25c0cbf9c0f554b3392206ea684c1a23
parent955797d01566bac49b9f49eadcd075f3cb7c5291
pvr: Improve support for image clears

Depth/stencil surfaces are not PBE renderable, so a compatible format must
be used instead. The code to calculate this compatible format was not called
when configuring the PBE, and it was missing formats.

Also the code to calculate PBE swizzles was throwing an error in unhandled
cases, rather than using the pre-calculated defaults which was the correct
behaviour.

Fixes blits in dEQP-VK.draw.renderpass.depth_clamp.d32_sfloat

Signed-off-by: James Glanville <james.glanville@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22748>
src/imagination/vulkan/pvr_job_transfer.c