mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests: Immediately transition resources after readback in the shader runner.
The resource could be destructed before the command list left open is executed; instead, we immediately perform the transition.
This commit is contained in:
committed by
Alexandre Julliard
parent
589670180a
commit
ca7fa0c015
Notes:
Alexandre Julliard
2023-11-01 22:40:06 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/425
@@ -546,13 +546,9 @@ static struct resource_readback *d3d12_runner_get_resource_readback(struct shade
|
||||
else
|
||||
state = D3D12_RESOURCE_STATE_UNORDERED_ACCESS;
|
||||
|
||||
transition_resource_state(test_context->list, resource->resource,
|
||||
state, D3D12_RESOURCE_STATE_COPY_SOURCE);
|
||||
get_resource_readback_with_command_list(resource->resource, 0, rb,
|
||||
test_context->queue, test_context->list);
|
||||
get_resource_readback_with_command_list_and_states(resource->resource, 0, rb,
|
||||
test_context->queue, test_context->list, state, state);
|
||||
reset_command_list(test_context->list, test_context->allocator);
|
||||
transition_resource_state(test_context->list, resource->resource,
|
||||
D3D12_RESOURCE_STATE_COPY_SOURCE, state);
|
||||
|
||||
return &rb->rb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user