anv,iris: Use the data cache for UBO pulls on Gen12+
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 20 Oct 2020 03:36:07 +0000 (22:36 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 20 Oct 2020 19:54:29 +0000 (19:54 +0000)
commit2015a109ff287cdf04607d5acc540aae2e87daa3
tree6fdf274218b5f34e5ee2fcd79eee8075809a3a77
parentcdc546ae7fe7477d97cf7b09ac8db0e44a3cfc45
anv,iris: Use the data cache for UBO pulls on Gen12+

Now that we have the HDC, using the data cache for UBO pulls seems to
help things quite a bit:

    GTA V DXVK              104.0%
    Talos Principle GL      102.8%
    Rise of Tomb Raider VK  102.8%
    Dark Souls 3 DXVK       101.4%
    Witcher3 DXVK           101.3%
    Bioshock Infinite GL    100.5%
    Doom 2016 VK            97.7%

Doom is a bit of a loss but it helps enough other stuff, it's probably
worth the hit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7230>
src/gallium/drivers/iris/iris_screen.c
src/intel/vulkan/anv_device.c