d3d12: Support PIPE_BIND_SHARED resource creation
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Reviewed-by: Yubo Xie <yuboxie@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144>
This commit is contained in:
committed by
Marge Bot
parent
80627e3579
commit
4fe1abe3dd
@@ -354,6 +354,9 @@ init_texture(struct d3d12_screen *screen,
|
||||
D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT : D3D12_HEAP_FLAG_NONE;
|
||||
init_residency = screen->support_create_not_resident ? d3d12_evicted : d3d12_resident;
|
||||
|
||||
if (templ->bind & PIPE_BIND_SHARED)
|
||||
heap_flags |= D3D12_HEAP_FLAG_SHARED;
|
||||
|
||||
hres = screen->dev10->CreateCommittedResource3(&heap_pris,
|
||||
heap_flags,
|
||||
&desc1,
|
||||
@@ -382,6 +385,9 @@ init_texture(struct d3d12_screen *screen,
|
||||
D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT : D3D12_HEAP_FLAG_NONE;
|
||||
init_residency = screen->support_create_not_resident ? d3d12_evicted : d3d12_resident;
|
||||
|
||||
if (templ->bind & PIPE_BIND_SHARED)
|
||||
heap_flags |= D3D12_HEAP_FLAG_SHARED;
|
||||
|
||||
hres = screen->dev->CreateCommittedResource(&heap_pris,
|
||||
heap_flags,
|
||||
&desc,
|
||||
|
||||
Reference in New Issue
Block a user