d3d12: Video processor to only promote resources to permanent residency when there is work to be flushed
d3d12: Video processor to only promote resources to permanent residency when there is work to be flushed
This fixes some cases where flush is called from the app without work being scheduled before, causing d3d12_promote_to_permanent_residency
to be called with garbage pointers/arguments.
cc @jenatali