etnaviv: don't try to copy PIPE_BUFFER with the 3D engine
authorLucas Stach <l.stach@pengutronix.de>
Fri, 26 Feb 2021 20:28:20 +0000 (21:28 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 9 Apr 2021 20:43:59 +0000 (22:43 +0200)
commit171d7a30818a04320d2be64651afcf52ee6986b2
tree387137caa7aa30f405d4d31eb822ba1124c5e2a0
parent22ea985d70392a1b17807e5b143312d67c524b03
etnaviv: don't try to copy PIPE_BUFFER with the 3D engine

PIPE_BUFFER layout is incompatible with the 3D pipe, so don't try to
blit it via a 3D engine blit, but fall back to the software copy.

Fixes crashes in piglit tests arb_copy_buffer and arb_map_buffer_range.

Fixes: c9e8b49b8852 (etnaviv: gallium driver for Vivante GPUs)
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9310>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c