v3d: use surface format defined on pipe_blit
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 13 Apr 2022 17:42:37 +0000 (19:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Apr 2022 08:03:42 +0000 (08:03 +0000)
commit21bfbc74eea000b9768371a12f5edc20bed715ae
tree25394b1ce40576c64e69f849e48fe3ce5ac4e047
parente6bcb8ad15d0d2645cf973ada23590616b10ac4d
v3d: use surface format defined on pipe_blit

When trying to perform a TLB-based blit, we need to create a surface out
of the src and dst resources. But instead of using the same formats as
the resources, we need to use the format that is passed through
pipe_blit_info.

This was making some cases to use the render-based blit instead of the
TLB-based blit, which is more performant.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15693>
src/gallium/drivers/v3d/v3d_blit.c