mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
dzn: Add a debug option for enabling bindless mode
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21913>
This commit is contained in:
parent
ebc8a86df1
commit
c93dda6bee
2 changed files with 4 additions and 0 deletions
|
|
@ -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 ?
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue