mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
d3d12: Create PIPE_BIND_SHARED resources with D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41110>
This commit is contained in:
parent
3a8ff22336
commit
f07be3b416
1 changed files with 4 additions and 0 deletions
|
|
@ -254,6 +254,10 @@ init_texture(struct d3d12_screen *screen,
|
|||
if (templ->bind & PIPE_BIND_RENDER_TARGET)
|
||||
desc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
|
||||
|
||||
// This is expected from D3D11 openers for D3D12 created shareable resources
|
||||
if (templ->bind & PIPE_BIND_SHARED)
|
||||
desc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS;
|
||||
|
||||
if (templ->bind & PIPE_BIND_DEPTH_STENCIL) {
|
||||
desc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue