gallivm: don't lower local invocation index in frontend
authorDave Airlie <airlied@redhat.com>
Mon, 9 Nov 2020 06:16:01 +0000 (16:16 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Aug 2021 23:20:00 +0000 (23:20 +0000)
commitc3bede9c96e80b45397f893e5960ebf2de76159a
treeeca9dbfb9414454428a394d3765f75f469af8fde
parentbaf800b236f2ed677106be91ebdcb5d8832de6f0
gallivm: don't lower local invocation index in frontend

The frontend can't handle variable block sizes properly,
so just lower it here in the backend.

Fixes CTS basic local_linear_id + get_linear_ids

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