Yiwei Zhang
d4ae409365
venus: refactor vn_android_get_wsi_memory to return VkDeviceMemory
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41145 >
2026-04-24 16:25:36 +00:00
Yiwei Zhang
f91520f75b
venus: adopt vk_android_get_ahb_layout
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41145 >
2026-04-24 16:25:35 +00:00
Yiwei Zhang
61bd3fcd84
venus: adopt vk_android_init_deferred_image
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41145 >
2026-04-24 16:25:35 +00:00
Yiwei Zhang
2cfbc7ef9a
ci/venus: update expectation for an expected fail
...
Failed since the below MR and was said to be a CTS bug:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40520
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:04 +00:00
Yiwei Zhang
b90adb10e8
venus: ensure ffb can catch device lost
...
similar to qfb
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15206
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:04 +00:00
Yiwei Zhang
35a18596ee
venus: add vn_get_fence_status that takes vn_relax_state
...
No behavior change in this commit.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:04 +00:00
Yiwei Zhang
e3afacb7b3
venus: ensure sfb can catch device lost
...
Similar to qfb except that we skip sfb consistency validation here.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:04 +00:00
Yiwei Zhang
20533207d3
venus: add vn_get_semaphore_counter_value that takes vn_relax_state
...
No behavior change in this commit.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:04 +00:00
Yiwei Zhang
9764c494ef
venus: ensure qfb can catch device lost
...
qfb shortcuts the synchronous query wait, so venus might be unable to
populate the device lost error from the host Vulkan driver. This change
emits a host call upon vn_relax warn order for that purpose. If the host
call ends up successful, we double check the qfb availability for
consistency to avoid silent regressions in qfb code path.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:03 +00:00
Yiwei Zhang
de86f0223d
venus: add vn_relax_warn to check if at warn order
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:03 +00:00
Yiwei Zhang
b1de02b7ea
venus: relocate vn_query_feedback_wait_ready into qfb query
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:03 +00:00
Yiwei Zhang
c8d9142b1f
venus: add vn_get_query_pool_results for non-qfb
...
This is the legacy path. Refactor to a helper to prepare for more
robust device lost detection.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40790 >
2026-04-10 12:16:03 +00:00
Valentine Burley
338a96f0a0
venus/ci: Move android-angle-venus-tu-a618 to sc7180-trogdor-kingoftown
...
Huge thanks to Laura and Doug for updating the EC and AP firmware, and
for switching the network adapter across all trogdor Chromebooks,
enabling them to boot Cuttlefish.
Also limit the concurrency to 6 for now.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40010 >
2026-04-03 09:25:14 +00:00
Valentine Burley
be65d69b02
ci/venus: Skip crashing Android CTS test on ANV
...
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40600 >
2026-03-25 07:51:08 +00:00
Georg Lehmann
284b4143f7
gallivm: don't optimize fadd(a, 0.0) with signed zero preserve
...
Fixes: 540e84bedb ("gallivm: Preserve -0 and nan")
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40520 >
2026-03-23 17:58:32 +00:00
Yiwei Zhang
c2fe95a364
venus: fix to relax the KHR_external_memory_fd requirement
...
This reverts commit 1895de16a6 . The proper
way to filter out venus incapable physical devices is to do the platform
specific check during renderer side instance creation time.
Fixes: 1895de16a6 ("venus: filter out venus incapable physical devices")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40478 >
2026-03-23 17:39:53 +00:00
Marek Olšák
102d41799b
Rename more sha and sha1 names to blake3
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:28 +00:00
Marek Olšák
d4831aaf5f
Rename sha1_* and sha_* names to blake3_*
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:28 +00:00
Marek Olšák
c0ac992a2a
Remove mesa-sha1.h
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:27 +00:00
Marek Olšák
699f9d7066
Inline _mesa_sha1_init/update/final functions
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:27 +00:00
Marek Olšák
a965ada6ee
Inline mesa_sha1, SHA1_CTX
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:27 +00:00
Marek Olšák
110632f702
Inline SHA1_DIGEST_LENGTH
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40383 >
2026-03-23 07:03:27 +00:00
Yiwei Zhang
1a302155ee
venus: force prime blit on Nvidia GPU
...
Normally Venus on Nvidia GPUs takes the prime blit path. The exception
is when KWin or any wlroots based compositors are used:
1. KWin and wlroots based compositors always add LINEAR to dmabuf
feedback tranches assuming LINEAR can be handled by GPU drivers.
2. Venus + Virgl only sees the compositor injected LINEAR mod since
Virgl doesn't support explicit modifiers on the driver side.
3. Nvidia GPUs doesn't support LINEAR color attachment, and it's too
late to reject LINEAR mod when the native image path has already
been taken instead of the prime image path.
Gamescope requires VK_EXT_physical_device_drm and its runtime doesn't
use standard WSI extensions, so venus can spoof without impacting it.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40339 >
2026-03-12 20:03:19 +00:00
Yiwei Zhang
b5655609b0
ci/venus: update expectation based on nightly job runs
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
https://gitlab.freedesktop.org/mesa/mesa/-/jobs/94723493
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40362 >
2026-03-12 18:19:47 +00:00
Valentine Burley
2addcc1dce
venus/ci: Add an Android Venus on Turnip job on a618
...
Add a nightly job running Cuttlefish with Venus on Turnip.
Similar to the existing Venus-on-ANV jobs, this uses Cuttlefish's
'venus_guest_angle' mode to run deqp-vk and deqp-egl with ANGLE and
Venus inside the Android guest, with Turnip on the host.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39993 >
2026-03-10 09:54:03 +01:00
Valentine Burley
0478046036
venus/ci: Remove hanging timeout override for ADL and TGL jobs
...
New deqp-runner version prints messages more frequently.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39993 >
2026-03-10 09:53:29 +01:00
Eric Engestrom
078fd1b19f
venus/ci: update expectations
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40243 >
2026-03-05 18:29:29 +00:00
Yiwei Zhang
f85416e79d
ci/venus: skip broken drm display tests
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40227 >
2026-03-04 20:20:14 +00:00
Valentine Burley
0468dbf989
venus/ci: Skip invalid SkQP test on ANV
...
This was clarified to be a spec violation: https://gitlab.khronos.org/vulkan/vulkan/-/issues/4713
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14912
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40111 >
2026-02-26 09:46:11 +01:00
Yiwei Zhang
835fd613b5
venus: expose VK_EXT_descriptor_heap by default
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The debug option is now toggled. VN_DEBUG=no_desc_heap can disable the
extension.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40085 >
2026-02-25 18:02:46 +00:00
Yiwei Zhang
f0e4ef50e3
venus: RegisterCustomBorderColorEXT can be async when index is requested
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40085 >
2026-02-25 18:02:46 +00:00
Yiwei Zhang
718ecfc008
venus: amend to mark descriptor size cache initialized
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40085 >
2026-02-25 18:02:46 +00:00
Valentine Burley
7672cccedb
venus/ci: Increase android-angle-venus-anv-cml-cts timeout
...
Avoid false timeouts.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40080 >
2026-02-25 08:40:28 +00:00
Gurchetan Singh
6c66b30add
virtio/kumquat: add safety comments
...
This is to help enable to clippy safety lint tree-wide.
Reviewed-by: Aaron Ruby <aruby@qnx.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39222 >
2026-02-23 17:20:10 +00:00
Yiwei Zhang
f83f7d43ee
venus: the GCC DSE workaround is no longer needed
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The strict aliasing violation has been fixed in the protocol.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39979 >
2026-02-20 06:00:46 +00:00
Yiwei Zhang
6411ee0c2d
venus: sync protocol for strict aliasing compliance
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124148 for details.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13242
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39979 >
2026-02-20 06:00:46 +00:00
Adam Jackson
527b642800
venus: advertise VK_KHR_shader_fma
...
v2: move feat and ext to KHR group instead of core group
v3: update docs
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39945 >
2026-02-17 21:11:18 +00:00
Yiwei Zhang
5d141e6e09
venus: sync latest protocol for VK_KHR_shader_fma
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39945 >
2026-02-17 21:11:18 +00:00
Yiwei Zhang
b0397b967d
venus: workaround a gcc-15 dead store elimination (DSE) bug
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
No issue with clang or gcc-14.x (or earlier versions). The issue only
shows up since gcc-15.1. The compiler somehow fails to consider those
cs helpers dereferencing the pointer from the pNext chain for reads,
and thus has falsely optimized away the pNext store. This change works
around this with a no-op memory clobber.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13242
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39906 >
2026-02-16 01:39:10 +00:00
Yiwei Zhang
a8baedef29
venus: expose VK_EXT_descriptor_heap behind a debug option
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
There's TODO for optimizing descriptor allocations, so currently we
expose the extension behind VN_DEBUG=desc_heap
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:30 +00:00
Yiwei Zhang
6265dad4f2
venus: fill descriptor heap feats and props
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:30 +00:00
Yiwei Zhang
dea6221a65
venus: take care of combined image sampler descriptor for ycbcr
...
We'd have to query it by reconstructing the sampler ycbcr conversion
image format props query. It's straightforward except having to consider
the modifier tiling case.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:30 +00:00
Yiwei Zhang
4f475789d5
venus: ensure descriptor writes invariance
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:30 +00:00
Yiwei Zhang
1d779f5af1
venus: cache descriptor size query
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:29 +00:00
Yiwei Zhang
dfc5d76205
venus: rename format_update_mutex for general purpose
...
Not worth separate locks for physical device level queries.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:29 +00:00
Yiwei Zhang
be52338399
venus: add vn_descriptor.h to be shared between different desc systems
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:28 +00:00
Yiwei Zhang
990b5fca37
venus: skip image cache for VkOpaqueCaptureDataCreateInfoEXT
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:28 +00:00
Yiwei Zhang
526788a097
venus: pipeline layout is now optional
...
If descriptor heap is used, there's no pipeline layout created. So we
have to patch compute and RT pipelines to allow it. Graphics pipeline
doesn't need the change because of GPL.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:28 +00:00
Yiwei Zhang
95331f3bd0
venus: cmd inheritance info fix to consider descriptor heap
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:28 +00:00
Yiwei Zhang
485b2b501c
venus: implement all descriptor heap commands
...
There're potential optimizations available for below:
- vkWriteSamplerDescriptorsEXT
- vkWriteResourceDescriptorsEXT
- vkGetPhysicalDeviceDescriptorSizeEXT
- vkRegisterCustomBorderColorEXT
...and we can revisit if there's perf hit from above for real apps.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39762 >
2026-02-15 04:32:28 +00:00