mesa/src
Yiwei Zhang 66b5ae35ec panvk: fix memory requirement query for aliased disjoint image
The spec allows to create aliased disjoint image for a specific plane of
a multi-planar image, and the format can be R8. When querying memory
requirement of such image, VkImagePlaneMemoryRequirementsInfo is not
required to be chained although it has the disjoint bit.

This change fixes to look for aspect info from plane memory info only
when that's chained. The implementation can be passive here as the spec
VU has sufficient guarantees for the validity around. See below VU for
details:
- VUID-VkImageMemoryRequirementsInfo2-image-01589
- VUID-VkImageMemoryRequirementsInfo2-image-01590
- VUID-VkImageMemoryRequirementsInfo2-image-02279
- VUID-VkImageMemoryRequirementsInfo2-image-02280

Meanwhile, the existing disjoint check for size info is kept as is for
the special handling of VK_FORMAT_D32_SFLOAT_S8_UINT.

Test: dEQP-VK.ycbcr.plane_view.memory_alias.* pass with venus-on-panvk

Fixes: 412c286331 ("panvk: Enable multiplane images and image views")
Reviewed-by: Rebecca Mckeever <rebecca.mckeever@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34134>
(cherry picked from commit 5dcb9f918d)
2025-04-02 11:04:10 +02:00
..
amd aco: don't assume that demote doesn't cause an empty exec mask 2025-04-02 11:04:10 +02:00
android_stub
asahi [25.0-only] hk: comment out dead variable 2025-02-04 20:47:26 +01:00
broadcom v3dv: don't overwrite the primary fd if it's already set 2025-03-15 09:49:03 +01:00
c11 c11: use SPDX-License-Identifier header 2025-01-08 20:37:51 +00:00
compiler nir/serialize: fix decoding of is_return and is_uniform 2025-03-15 09:49:05 +01:00
drm-shim
egl egl/surfaceless: Only choose drivers that expose the graphics capability 2025-04-02 11:04:10 +02:00
etnaviv etnaviv: always clamp shadow sampler comparison reference value 2025-01-28 00:01:07 +00:00
freedreno ir3: keep inputs at start block when creating empty preamble 2025-03-15 09:49:03 +01:00
gallium panfrost: consider xfb shader when calculating thread local storage size 2025-04-02 11:04:10 +02:00
gbm gbm: fix get_back_bo() failure with gbm_surface and implicit modifiers 2025-02-15 00:03:01 +01:00
getopt
gfxstream gfxstream: Downgrade log severity when enabling params in LinuxVirtGpu 2025-03-20 14:26:05 +01:00
glx glapi: rename exported symbols so as not to conflict with old libglapi 2025-01-23 00:49:05 +00:00
gtest
imagination pvr: use vk_descriptor_type_is_dynamic 2024-12-19 15:12:58 +00:00
imgui
intel [25.0 only] update ci expectations 2025-04-02 11:04:10 +02:00
loader kmsro: look for graphics capable screen as renderonly device 2025-04-02 11:04:10 +02:00
mapi mesa/main: wire up glapi bits for EXT_multi_draw_indirect 2025-02-21 17:07:26 +01:00
mesa st/mesa: fix nir_load_per_vertex_input parameter 2025-03-15 09:49:03 +01:00
microsoft ci: fix the artifact name 2025-02-05 16:05:42 +01:00
nouveau nil: Relax alignment requirements for linear images 2025-03-15 09:49:03 +01:00
panfrost panvk: fix memory requirement query for aliased disjoint image 2025-04-02 11:04:10 +02:00
tool panvk: add u_trace perfetto support 2024-12-17 23:14:26 +00:00
util drirc: Apply assume_full_subgroups_with_shared_memory to Resident Evil 2 2025-03-15 09:49:03 +01:00
virtio venus: fix maint4 multi-planar memory requirements 2025-04-02 11:04:10 +02:00
vulkan vulkan/runtime: ensure robustness state is fully initialized 2025-02-28 22:17:35 +01:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format freedreno: move ForEachMacros into freedreno 2025-01-24 12:15:31 +00:00
meson.build dri: put shared-glapi into libgallium.*.so 2025-01-23 00:49:05 +00:00