mesa/src/broadcom
Iago Toral Quiroga bec3c83e19 v3dv: implement VK_KHR_buffer_device_address
This feature allows shaders to use pointers to buffers which may
not be bound via descriptor sets. Access to these buffers is done
via global intrinsics.

Because the buffers are not accessed through descriptor sets, any
live buffer flagged with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_KHR
can be accessed by any shader using global intrinsics, so the driver
needs to make sure all these buffers are mapped by the kernel when
it submits the job for execution.

We handle this by tracking if any draw call or compute dispatch in
a job uses a pipeline that has any such shaders. If so, the job is
flagged as using buffer device address and the kernel submission
for that job will add all live BOs bound to buffers flagged with the
buffer device address usage flag.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17275>
2022-07-19 09:47:34 +02:00
..
ci v3dv: implement VK_KHR_buffer_device_address 2022-07-19 09:47:34 +02:00
cle broadcom: add line rasterization mode to packet definition 2022-03-18 09:38:38 +00:00
clif
common v3d,v3dv: stop copying and pasting the translate_swizzle helper 2022-07-13 10:09:34 +00:00
compiler broadcom/compiler: track if a shader uses global intrinsics 2022-07-19 09:47:34 +02:00
drm-shim Use proper types for meson objects 2022-04-18 13:03:08 +03:00
qpu
simulator v3d/simulator: add support for AMD cards 2022-04-27 14:42:23 +00:00
vulkan v3dv: implement VK_KHR_buffer_device_address 2022-07-19 09:47:34 +02:00
.editorconfig
meson.build