mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Clear the UAV before testing.
There is no guarantee that a resource is cleared upon creation. This fixes the test on NVIDIA and llvmpipe.
This commit is contained in:
committed by
Alexandre Julliard
parent
5e43f99809
commit
dff22c9ed7
Notes:
Alexandre Julliard
2024-03-11 23:07:26 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/700
@@ -128,17 +128,6 @@ static void check_alignment_(unsigned int line, uint64_t size, uint64_t alignmen
|
||||
size, aligned_size);
|
||||
}
|
||||
|
||||
static void uav_barrier(ID3D12GraphicsCommandList *list, ID3D12Resource *resource)
|
||||
{
|
||||
D3D12_RESOURCE_BARRIER barrier;
|
||||
|
||||
barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_UAV;
|
||||
barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE;
|
||||
barrier.UAV.pResource = resource;
|
||||
|
||||
ID3D12GraphicsCommandList_ResourceBarrier(list, 1, &barrier);
|
||||
}
|
||||
|
||||
static const DXGI_FORMAT depth_stencil_formats[] =
|
||||
{
|
||||
DXGI_FORMAT_R32G8X24_TYPELESS,
|
||||
|
Reference in New Issue
Block a user