d3d12: Support device factories in addition to global device creation
authorJesse Natalie <jenatali@microsoft.com>
Sun, 28 Aug 2022 13:32:36 +0000 (06:32 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 00:30:21 +0000 (00:30 +0000)
commitd21f0cb5b9b8e0bff42b42cbdf90b1f2f86fb46f
tree1b4aca05e389a07296154fa47fd7216719911433
parentcb9a58c1036070831f4ee33e409c5b01d3c90129
d3d12: Support device factories in addition to global device creation

As explained in a comment, a device factory allows modification of state
like debug layer enablement without touching global state / triggering
device removal on a singleton device, and can even create devices that are
not singletons if the driver supports that.

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18305>
src/gallium/drivers/d3d12/d3d12_screen.cpp