Module: vkd3d Branch: master Commit: 4374d45655ab0661f2f95755f13dba3537083392 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/4374d45655ab0661f2f95755f13dba...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Mon Sep 25 22:32:47 2023 +0200
tests: Work around a MoltenVK bug in test_tgsm().
---
tests/d3d12.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index 3f2fc91b..6ffcd92e 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -21638,6 +21638,7 @@ static void test_tgsm(void) /* cs_structured_tgsm */ reset_command_list(command_list, context.allocator);
+ bug_if(is_mvk_device(context.device)) context.pipeline_state = create_compute_pipeline_state(device, context.root_signature, cs_structured_tgsm);
buffer2 = create_default_buffer(device, 1024, @@ -21690,7 +21691,8 @@ static void test_tgsm(void) } release_resource_readback(&rb);
- ID3D12PipelineState_Release(context.pipeline_state); + if (context.pipeline_state) + ID3D12PipelineState_Release(context.pipeline_state);
/* cs_structured_tgsm_float */ reset_command_list(command_list, context.allocator);