Skip to content

panvk: Fix NULL deref on model name when device isn't supported

Mary Guillemard requested to merge marysaka/mesa:panvk-fix-dev-name-crash into main

What does this MR do and why?

panvk: Fix NULL deref on model name when device isn't supported

Instead of reproting an VK_ERROR_INCOMPATIBLE_DRIVER we were crashing as
device->model was init after this error check.

Tested on G57 but should work the same on all unsupported arch.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Fixes: f7f9b3d170f5 ("panvk: Move to vk_properties")

/cc @bbrezillon

Merge request reports

Loading