mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
76e72ed452
commit
d7f5563907
2 changed files with 3 additions and 3 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue