About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/freedreno/vulkan/tu_cmd_buffer.cc
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2025-11-05 14:23:00 -0800
committerMarge Bot <marge-bot@fdo.invalid>2025-11-06 18:26:01 +0000
commit4ec2a921d3437cfd6dc01c63b3cac180e308188e (patch)
tree1fcd4fdf17254d49210eee458ba7ff9acfdd2d12 /src/freedreno/vulkan/tu_cmd_buffer.cc
parent2d98d44e630efcafbd96bfe0e928ecb9f4b345d5 (diff)
panvk: fix mem alloc size for VkBuffer backed by imported blob AHB
For AHB VkBuffer import, the allocationSize comes from the raw external AHB props query and it can be larger than the underlying buffer memory requirement. So we must respect the allocationSize for the actual mem import to support mapping the whole AHB size, and the dedicated buffer info has to be stripped to obey the spec. Test: CtsNativeHardwareTestCases no longer crashes on debug build panvk Fixes: 66bbd9eec83 ("panvk: implement AHB image deferred init and memory alloc") Tested-by: Valentine Burley <valentine.burley@collabora.com> Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38274>
Diffstat (limited to 'src/freedreno/vulkan/tu_cmd_buffer.cc')
0 files changed, 0 insertions, 0 deletions