llvmpipe: Add get_{driver,device}_uuid implementations
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Fri, 14 Jan 2022 12:49:49 +0000 (13:49 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Jan 2022 21:36:41 +0000 (21:36 +0000)
commit537a0ee3b7f836564f5b4c05da7b13a27b226c46
tree7a90dfea56ee3108a6aad4a45137806c0006c677
parentacd0afdba495227fe5584ebfa822f5c87aa433cd
llvmpipe: Add get_{driver,device}_uuid implementations

Commit 9da15aa3aa94 ("llvmpipe: enable EXT_memory_object(_fd)") enabled
the extension, but left this unimplemented.

Leaving this unimplemented causes segfaults for anyone trying to retrieve
the UUIDs, as the calling code in the state tracker does not check if the
function is implemented. This affects e.g. current Wine versions.

Set the UUID to all zeros. Although this slightly violates the vulkan
specification (since 1.2.146), the UUIDs have to match the ones from
lavapipe (lvp_get_physical_device_properties_1_1).

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5865
Fixes: 9da15aa3aa94 ("llvmpipe: enable EXT_memory_object(_fd)")
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Dave Airlie airlied@redhat.com
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14558>
src/gallium/drivers/llvmpipe/lp_screen.c