From: Jesse Natalie Date: Mon, 13 Mar 2023 19:45:15 +0000 (-0700) Subject: dzn: Add a debug option for enabling bindless mode X-Git-Tag: upstream/23.3.3~11167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c93dda6bee010b674635f004aef688baa49fd4e2;p=platform%2Fupstream%2Fmesa.git dzn: Add a debug option for enabling bindless mode Part-of: --- diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index 781e656..f295c60 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -144,6 +144,7 @@ static const struct debug_control dzn_debug_options[] = { { "d3d12", DZN_DEBUG_D3D12 }, { "debugger", DZN_DEBUG_DEBUGGER }, { "redirects", DZN_DEBUG_REDIRECTS }, + { "bindless", DZN_DEBUG_BINDLESS }, { NULL, 0 } }; @@ -2363,6 +2364,8 @@ dzn_device_create(struct dzn_physical_device *pdev, device->need_swapchain_blits = true; } + device->bindless = (instance->debug_flags & DZN_DEBUG_BINDLESS) != 0; + if (device->bindless) { dzn_foreach_pool_type(type) { uint32_t descriptor_count = type == D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER ? diff --git a/src/microsoft/vulkan/dzn_private.h b/src/microsoft/vulkan/dzn_private.h index 67d4259..ab58265 100644 --- a/src/microsoft/vulkan/dzn_private.h +++ b/src/microsoft/vulkan/dzn_private.h @@ -1216,6 +1216,7 @@ enum dzn_debug_flags { DZN_DEBUG_D3D12 = 1 << 7, DZN_DEBUG_DEBUGGER = 1 << 8, DZN_DEBUG_REDIRECTS = 1 << 9, + DZN_DEBUG_BINDLESS = 1 << 10, }; struct dzn_instance {