dwrite: Prefer d3d12 resource allocated with shared heap

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7243>
This commit is contained in:
Seungha Yang 2024-07-27 03:39:22 +09:00
parent 4a6daad517
commit 1c8c5ed457

View file

@ -637,7 +637,7 @@ gst_dwrite_d3d12_render_handle_allocation_query (GstDWriteRender * render,
params = gst_d3d12_allocation_params_new (priv->device, &info, params = gst_d3d12_allocation_params_new (priv->device, &info,
GST_D3D12_ALLOCATION_FLAG_DEFAULT, GST_D3D12_ALLOCATION_FLAG_DEFAULT,
D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS | D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS |
D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET, D3D12_HEAP_FLAG_NONE); D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET, D3D12_HEAP_FLAG_SHARED);
} else { } else {
gst_d3d12_allocation_params_set_resource_flags (params, gst_d3d12_allocation_params_set_resource_flags (params,
D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS | D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS |