gallivm: break out native vector width calc for reuse
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 21 Apr 2023 14:56:44 +0000 (10:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 00:04:08 +0000 (00:04 +0000)
commit4a056807bc3b813f390d194bbe382b573761649e
tree725d55784ab60a4aa4a89cd89e76c49f3efd3dac
parent78e448f4f91f54df8e4f3385e86c947aeb08f42d
gallivm: break out native vector width calc for reuse

breaks dependency on lp_build_init()

cc: mesa-stable

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22600>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_init.h
src/gallium/drivers/llvmpipe/lp_screen.c