intel/fs: Be more conservative in split_virtual_grfs
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 9 Nov 2021 20:37:57 +0000 (14:37 -0600)
committerMarge Bot <emma+marge@anholt.net>
Sat, 18 Dec 2021 01:46:19 +0000 (01:46 +0000)
commit38fa18a7a325e1aca105c643dee0ae8305f4b35f
treeb8583e604eee5fbf49123945e3ea3bc30c6dd5e7
parentc9c50f89b2b68300d473060df5d8d841e2e1e49e
intel/fs: Be more conservative in split_virtual_grfs

Instead of modifying every single instruction, keep track of which VGRFs
are actually split in a bit-set, and only modify the instructions that
actually touch split regs.

This cuts the runtime of the following Vulkan CTS on my SKL box by 45%
from 3:21 to 1:51:  dEQP-VK.ssbo.phys.layout.random.16bit.scalar.13

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13734>
src/intel/compiler/brw_fs.cpp