panfrost: Handle resources without depth in batch_to_fb_info
authorDavid Heidelberg <david.heidelberg@collabora.com>
Fri, 9 Dec 2022 11:06:39 +0000 (12:06 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 10 Dec 2022 10:56:09 +0000 (10:56 +0000)
commit8560c7613d4e87bbfec2b590efcd7a955c675486
treeda32d8367321b5f30077b87aff1b2f6dbb1976e8
parentd76d791565a720ec2c86f07c4f2690676a3c41c8
panfrost: Handle resources without depth in batch_to_fb_info

Prevent preloading data from resources which doesn't exist.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Aleksey Komarov <q4arus@ya.ru>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20238>
src/gallium/drivers/panfrost/pan_job.c