dzn: Create all buffers in COMMON state

Since they promote/decay, there's no point in using any
other initial state value.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20324>
This commit is contained in:
Jesse Natalie
2022-12-14 12:16:43 -08:00
committed by Marge Bot
parent 76e72ed452
commit d7f5563907
2 changed files with 3 additions and 3 deletions

View File

@@ -2070,7 +2070,7 @@ dzn_device_query_init(struct dzn_device *device)
if (FAILED(ID3D12Device1_CreateCommittedResource(device->dev, &hprops,
D3D12_HEAP_FLAG_NONE,
&rdesc,
D3D12_RESOURCE_STATE_GENERIC_READ,
D3D12_RESOURCE_STATE_COMMON,
NULL,
&IID_ID3D12Resource,
(void **)&device->queries.refs)))

View File

@@ -150,7 +150,7 @@ dzn_query_pool_create(struct dzn_device *device,
hres = ID3D12Device1_CreateCommittedResource(device->dev, &hprops,
D3D12_HEAP_FLAG_NONE,
&rdesc,
D3D12_RESOURCE_STATE_COPY_DEST,
D3D12_RESOURCE_STATE_COMMON,
NULL,
&IID_ID3D12Resource,
(void **)&qpool->resolve_buffer);
@@ -165,7 +165,7 @@ dzn_query_pool_create(struct dzn_device *device,
hres = ID3D12Device1_CreateCommittedResource(device->dev, &hprops,
D3D12_HEAP_FLAG_NONE,
&rdesc,
D3D12_RESOURCE_STATE_COPY_DEST,
D3D12_RESOURCE_STATE_COMMON,
NULL,
&IID_ID3D12Resource,
(void **)&qpool->collect_buffer);