Module: Mesa Branch: main Commit: 61afaa0c6893999102cab3a0519e1b4e12311988 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61afaa0c6893999102cab3a0519e1b4e12311988
Author: Jesse Natalie <[email protected]> Date: Mon Oct 31 09:40:45 2022 -0700 dzn: Set factory flags before creating device I got this in d3d12 but missed it in dzn Fixes: 74d1c72b ("dzn: Support device factories in addition to global device creation") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19420> --- src/microsoft/vulkan/dzn_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microsoft/vulkan/dzn_util.c b/src/microsoft/vulkan/dzn_util.c index 19a938d1de9..c1be1cded8c 100644 --- a/src/microsoft/vulkan/dzn_util.c +++ b/src/microsoft/vulkan/dzn_util.c @@ -375,6 +375,8 @@ d3d12_create_device(struct util_dl_library *d3d12_mod, IUnknown *adapter, ID3D12 ID3D12Device2 *dev; if (factory) { + ID3D12DeviceFactory_SetFlags(factory, D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE | + D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE); if (FAILED(ID3D12DeviceFactory_CreateDevice(factory, adapter, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device2, (void **)&dev))) {
