summaryrefslogtreecommitdiff
path: root/src/amd
diff options
context:
space:
mode:
authorFelix bridault <felixbridault@gmail.com>2023-12-03 15:30:02 +0000
committerEric Engestrom <eric@engestrom.ch>2023-12-04 21:36:35 +0000
commitce68ed2d1c2e0a972a1d4bd47d1aba4340c2a207 (patch)
tree31e58ed61a3bcdf79b792d8b60690758662297fe /src/amd
parentfdf972e418bd5509f9459e837a08b3150f68b960 (diff)
downloadmesa-ce68ed2d1c2e0a972a1d4bd47d1aba4340c2a207.tar.gz
mesa-ce68ed2d1c2e0a972a1d4bd47d1aba4340c2a207.tar.bz2
mesa-ce68ed2d1c2e0a972a1d4bd47d1aba4340c2a207.zip
radv: use 32bit va range for sparse descriptor buffers
Fixes: 5c5735fd681 ("radv: advertise VK_EXT_descriptor_buffer") Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26482> (cherry picked from commit 059391b63114055a5349f8aef9c3f03245a2aa07)
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_buffer.c b/src/amd/vulkan/radv_buffer.c
index a42a61cac06..a9b38fdbfb9 100644
--- a/src/amd/vulkan/radv_buffer.c
+++ b/src/amd/vulkan/radv_buffer.c
@@ -90,6 +90,8 @@ radv_create_buffer(struct radv_device *device, const VkBufferCreateInfo *pCreate
enum radeon_bo_flag flags = RADEON_FLAG_VIRTUAL;
if (pCreateInfo->flags & VK_BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT)
flags |= RADEON_FLAG_REPLAYABLE;
+ if (pCreateInfo->usage & VK_BUFFER_USAGE_2_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT)
+ flags |= RADEON_FLAG_32BIT;
uint64_t replay_address = 0;
const VkBufferOpaqueCaptureAddressCreateInfo *replay_info =