hasvk: Mirror !18637 to hasvk
This MR carries patches of MR !18637 (merged) from anv to hasvk.
I had tested them on a Intel(R) HD Graphics 4000 (IVB GT2) GPU. I ran two games through DXVK - both worked just fine. Then I ran Minecraft trough zink (yes, technically it is not supported), and I saw no regressions.
Perf gain with vkoverhead -test 0 -duration 3 -output-only
:
23617 : mesa-git commit 9ebe893a
32612 : same, but with this MR
CC: mesa-stable
Edited by Semjon Kravtšenko