vkd3d: Handle reserved resources in host barrier code
Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
08135f7746
commit
71328b9be7
|
@ -626,6 +626,13 @@ static HRESULT d3d12_resource_create(struct d3d12_device *device,
|
|||
|
||||
bool d3d12_heap_needs_host_barrier_for_write(struct d3d12_heap *heap)
|
||||
{
|
||||
if (!heap)
|
||||
{
|
||||
/* This is a reserved resource and we have no guarantee
|
||||
* it's not mapped to something with readback. */
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (heap->desc.Properties.Type)
|
||||
{
|
||||
case D3D12_HEAP_TYPE_DEFAULT:
|
||||
|
|
Loading…
Reference in New Issue