radv: do not abort with unknown/unimplemented descriptor types
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Apr 2020 16:08:10 +0000 (18:08 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 08:14:56 +0000 (08:14 +0000)
commit35b396392880871b8cc06172dafff238e67c44cc
treeb0e6a0cbab91fb2795d9dc7ddb7120ac7f544561
parent11faaf646d1397db0d902298a3f0870f79692b68
radv: do not abort with unknown/unimplemented descriptor types

To workaround a crash with Wolfeinstein Younglood because the
games creates one descriptor with
VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV...

I reported the problem to Machine Games, but still no answer, so
let's remove the unreachable calls (which are technically not
unreachable for buggy apps) to help gamers.

Note that AMDVLK and AMDGPU-PRO don't crash because they ignore
unsupported descriptor types.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4571>
src/amd/vulkan/radv_descriptor_set.c