mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
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:
parent
a85e8058cb
commit
dd7cfd5255
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue