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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user