dzn: Add a debug flag for forcing off native view instancing

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27348>
This commit is contained in:
Jesse Natalie 2024-01-29 15:37:14 -08:00 committed by Marge Bot
parent a85e8058cb
commit dd7cfd5255
2 changed files with 5 additions and 0 deletions

View file

@ -181,6 +181,7 @@ static const struct debug_control dzn_debug_options[] = {
{ "bindless", DZN_DEBUG_BINDLESS },
{ "nobindless", DZN_DEBUG_NO_BINDLESS },
{ "experimental", DZN_DEBUG_EXPERIMENTAL },
{ "multiview", DZN_DEBUG_MULTIVIEW },
{ NULL, 0 }
};
@ -1134,6 +1135,9 @@ dzn_physical_device_create(struct vk_instance *instance,
dzn_physical_device_init_memory(pdev);
dzn_physical_device_init_uuids(pdev);
if (dzn_instance->debug_flags & DZN_DEBUG_MULTIVIEW)
pdev->options3.ViewInstancingTier = D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED;
dzn_physical_device_get_extensions(pdev);
if (driQueryOptionb(&dzn_instance->dri_options, "dzn_enable_8bit_loads_stores") &&
pdev->options4.Native16BitShaderOpsSupported)

View file

@ -1255,6 +1255,7 @@ enum dzn_debug_flags {
DZN_DEBUG_BINDLESS = 1 << 10,
DZN_DEBUG_NO_BINDLESS = 1 << 11,
DZN_DEBUG_EXPERIMENTAL = 1 << 12,
DZN_DEBUG_MULTIVIEW = 1 << 13,
};
struct dzn_instance {