dzn: Roll up initialization failure in dzn_meta_init

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13416
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35748>
(cherry picked from commit 7f4ae75903)
This commit is contained in:
Jesse Natalie 2025-06-25 09:59:42 -07:00 committed by Eric Engestrom
parent a20567eead
commit fe9d475e34
2 changed files with 3 additions and 5 deletions

View file

@ -704,7 +704,7 @@
"description": "dzn: Roll up initialization failure in dzn_meta_init",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -827,16 +827,14 @@ dzn_meta_init(struct dzn_device *device)
continue;
if (type.draw_id && pdev->options21.ExecuteIndirectTier >= D3D12_EXECUTE_INDIRECT_TIER_1_1)
continue;
VkResult result =
dzn_meta_indirect_draw_init(device, type);
result = dzn_meta_indirect_draw_init(device, type);
if (result != VK_SUCCESS)
goto out;
}
if (!pdev->options15.TriangleFanSupported) {
for (uint32_t i = 0; i < ARRAY_SIZE(device->triangle_fan); i++) {
VkResult result =
dzn_meta_triangle_fan_rewrite_index_init(device, i);
result = dzn_meta_triangle_fan_rewrite_index_init(device, i);
if (result != VK_SUCCESS)
goto out;
}