mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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:
parent
80627e3579
commit
4fe1abe3dd
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue