Skip to content

d3d12device: Keep device object permanently

Seungha Yang requested to merge seungha.yang/gstreamer:d3d12-singleton into main

Because ID3D12Device objects are singletons per adapter, GstD3D12Device was following the API design, that is, keep track of global GstD3D12Device objects and reuses it. That means ID3D12Device object can be released at the time when GstD3D12Device is destroyed.

But exetrnal APIs such as NVENC does not seem to be happy with the released ID3D12Device, that could be a driver bug though.

Let's hold already opened ID3D12Device permanently without releasing it for now.

Merge request reports