mesa/src
Iago Toral Quiroga 1bbbdbe666 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>
2023-04-05 06:21:26 +00:00
..
amd radv: update PS num_vgprs in case of epilogs rather than overallocating VGPRs 2023-04-04 18:35:43 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
broadcom v3dv: always acquire display device before checking if we can present 2023-04-05 06:21:26 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler spirv: Assume input attachments are read-only 2023-04-04 22:50:05 +00:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl dri2/android: Bypass throttling 2023-03-30 18:46:04 +00:00
etnaviv ci/etnaviv: Polish the gc2000 xfails a bit. 2023-03-29 07:52:45 +00:00
freedreno ci/zink: Disable godot-tps-gles3 on a630. 2023-04-04 15:37:14 +00:00
gallium llvmpipe: clean-up llvmpipe_get_query_result() 2023-04-05 03:49:16 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx glx: fix memory leak related to __glXCloseDisplay() 2023-03-20 21:12:54 +00:00
gtest
imagination pvr: Mark all normalized formats as supporting with_packed_usc_channel 2023-03-29 13:00:37 +00:00
imgui
intel anv: Drop dead code that sets the L3BypassDisable field 2023-04-04 17:39:20 +00:00
loader loader: Use libdrm shim 2023-03-05 16:31:51 +00:00
mapi mapi: add InternalInvalidateFramebufferAncillaryMESA 2023-03-30 05:06:47 +00:00
mesa mesa: fix invalid index_bo refcounting 2023-04-04 11:50:58 +00:00
microsoft Revert "microsoft/compiler: Use SRVs for read-only images" 2023-04-04 22:50:05 +00:00
nouveau nouveau: Make getSize return unsigned int 2023-03-17 16:08:33 +00:00
panfrost Uprev Piglit to 2391a83d1639a7ab7bbea02853b922878687b0e5 2023-04-04 15:37:14 +00:00
tool pps: Fix build errors. 2023-03-13 01:22:46 +00:00
util perfetto: Move intel's cmdbuf/queue annotation code to the shared util. 2023-03-30 02:19:35 +00:00
virtio venus/ci: Only run one crosvm instance 2023-03-31 12:39:49 +00:00
vulkan vulkan/wsi/display: set pDisplay to NULL on error 2023-04-05 06:21:26 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00