d3d12: Move some things from screen late-init to early-init
authorJesse Natalie <jenatali@microsoft.com>
Mon, 29 Aug 2022 19:32:48 +0000 (12:32 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 00:30:21 +0000 (00:30 +0000)
commitff102db76c0c37c33fe466de5f12fd88f0272b78
tree5fdc855dbfc5caf76912b75d695fb17d9e9c1782
parent18683917327edd79605752271f52a99fab1d8678
d3d12: Move some things from screen late-init to early-init

The GLSL singleton ref was too late, and we could end up with an un-paired
dec-ref if screen init failed. Also the transfer slab init was in the wrong
init function, so we'd re-init that struct if the screen was re-initialized.

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