mesa/src/panfrost
Boris Brezillon c05104c71f panvk: Keep a ref to a pan_kmod_bo in panvk_buffer
We don't need the panfrost_bo object which contains both the BO and
its CPU/GPU mappings. We store the GPU address at bind time. We also
have a hack for index buffers which are currently walked by the CPU
to extract the min/max index. Add a comment to make sure this field
goes away when indirect draw is fixed.

While at it, keep a ref to the buffer object so we don't end up with
a invalid deref (UAF) if the vulkan user does something silly like
freeing the VkDeviceMemory object while the VkBuffer is still active.
Flag this with a TODO to make sure we don't forget about it.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Constantine Shablya <constantine.shablya@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26698>
2024-01-23 16:32:10 +00:00
..
ci panvk: Fix access to unitialized panvk_pipeline_layout::num_sets field 2024-01-17 11:42:25 +00:00
compiler nir: rework and fix rotate lowering 2024-01-22 10:27:44 +00:00
drm-shim panfrost: fix panfrost drm-shim 2024-01-22 09:36:47 +00:00
ds panfrost: Make pan_perf panfrost_device agnostic 2024-01-23 16:32:09 +00:00
include panfrost: prepare pan_image_view for multiplanar formats 2023-08-07 19:35:12 +00:00
lib panfrost: Add a helper to retrieve a panfrost_bo from a pan_kmod_bo 2024-01-23 16:32:09 +00:00
midgard nir: rework and fix rotate lowering 2024-01-22 10:27:44 +00:00
perf panfrost: Make pan_perf panfrost_device agnostic 2024-01-23 16:32:09 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools panfrost: Make panfrost_texfeatures.c panfrost_device agnostic 2024-01-23 16:32:09 +00:00
util treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
vulkan panvk: Keep a ref to a pan_kmod_bo in panvk_buffer 2024-01-23 16:32:10 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00