d3d12: Video processor to only promote resources to permanent residency when there...
authorSil Vilerino <sivileri@microsoft.com>
Tue, 11 Apr 2023 14:42:11 +0000 (10:42 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Apr 2023 20:09:19 +0000 (20:09 +0000)
commit26f767d524713e5f9b992715a090a78c89a7afdb
tree4b0236e7f2c3b965cfd4bfd9a96a01434c14c572
parent17df75d47d706232b30b34baeeb43a15311777db
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.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22415>
src/gallium/drivers/d3d12/d3d12_video_proc.cpp