mesa/src/vulkan
Iago Toral Quiroga 761adfcab8 vulkan/wsi/display: set pDisplay to NULL on error
the spec for vkGetDrmDisplayEXT says:

  "If there is no VkDisplayKHR corresponding to the connectorId on the
   physicalDevice, the returning display must be set to VK_NULL_HANDLE.
   The provided drmFd must correspond to the one owned by the physicalDevice.
   If not, the error code VK_ERROR_UNKNOWN must be returned. (...)
   The given connectorId must be a resource owned by the provided drmFd.
   If not, the error code VK_ERROR_UNKNOWN must be returned"

We were only setting the display pointer to VK_NULL_HANDLE if the provided
drmFd was valid, however, there are CTS tests checking that it is also set
to NULL when it is not.

Fixes the following test on all drivers exposing EXT_acquire_drm_display
(tested with Intel and V3DV):
dEQP-VK.wsi.acquire_drm_display.acquire_drm_display_invalid_fd

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22283>
(cherry picked from commit 1bbbdbe666)
2023-04-05 13:14:05 -07:00
..
device-select-layer vulkan/device-select-layer: drop wayland-protocols dep 2022-11-23 12:15:23 +00:00
overlay-layer
registry vulkan: update headers/registry to 1.3.238 for video decode 2022-12-20 07:28:07 +10:00
runtime vulkan: track the right value on CmdSetColorWriteMasks 2023-02-27 13:50:06 -08:00
util vulkan/rmv: Only trace on the n-th frame 2023-01-12 18:24:49 +00:00
wsi vulkan/wsi/display: set pDisplay to NULL on error 2023-04-05 13:14:05 -07:00
meson.build meson: Refactoring shared gen_vs_module_defs_normal_command out 2022-11-11 05:38:19 +00:00
vulkan-icd-symbols.txt
vulkan_api.def.in