febc923a46
This is much cleaner than passing an index around it will allow implementing multidimensional ray query arrays. Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32334>