turnip/pipeline: Don't assume tu_shader is a valid object
authorEduardo Lima Mitev <elima@igalia.com>
Sun, 9 Feb 2020 21:07:03 +0000 (21:07 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 12:20:20 +0000 (12:20 +0000)
commit99f2b6144b5c3c4f48096ed0de4b15d1d13afd96
treeffd84f446ede8f86f6d3fd7cd64d25fc7d868132
parent12a22da6834f21cb089bf9ecd44c483bd264ccd3
turnip/pipeline: Don't assume tu_shader is a valid object

Fixes a crash in tu6_emit_fs_config() when 'shader' argument is
assumed to be non-null, which is possible.

Fixes dEQP test:

dEQP-VK.api.descriptor_set.descriptor_set_layout_lifetime.graphics

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3756>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3756>
src/freedreno/vulkan/tu_pipeline.c