nir: Refactor load/store intrinsic helper
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 29 Jun 2020 17:16:26 +0000 (19:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 16:44:15 +0000 (16:44 +0000)
commit7ab73160032012272a47e6a22e3152489b98b2a0
tree0f7bd4d04f753a0a5d9625c98c79603cef913ed3
parent6d8e2cec819c1608258b566a9110871219f54dcd
nir: Refactor load/store intrinsic helper

Add the possibility to specify the source components. This is necessary
to let the UBO/SSBO index have more than one component, and it also lets
us remove a few hand-rolled load intrinsic definitions.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5683>
src/compiler/nir/nir_intrinsics.py