llvmpipe: Handle NULL views in llvmpipe_cleanup_stage_sampling
authorJoshua Ashton <joshua@froggi.es>
Tue, 13 Jul 2021 21:09:24 +0000 (22:09 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Jul 2021 02:50:30 +0000 (02:50 +0000)
commitf5946354d3ebc3fda9c0de7303a7a1073774fdf0
tree20c9685bb547095f5afdb9642200644a7e8e0218
parent86f09b14dfc33e7acdb7cf34e9f81233af00bc06
llvmpipe: Handle NULL views in llvmpipe_cleanup_stage_sampling

This is the only barrier to lavapipe fully working in RenderDoc.

Fixes: 21864bdaaef6 ("llvmpipe: unmap display target of shader image/sampler")

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11856>
src/gallium/drivers/llvmpipe/lp_state_sampler.c