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:
Silvio Vilerino 2026-04-21 14:48:31 -04:00 committed by Marge Bot
parent 3a8ff22336
commit f07be3b416

View file

@ -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;