nir: fix slot calculations for compact variables with location_frac
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Jul 2023 16:18:05 +0000 (12:18 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jul 2023 13:14:35 +0000 (13:14 +0000)
commit59396eefe6440920532009e5cbfd17c0c09fdaa1
tree93e036542f81d13d10f138608a4270fd43b1dce0
parent42021b4d13fe849bbe0c2986329d899c9f993bde
nir: fix slot calculations for compact variables with location_frac

a variable with a component offset may span multiple slots, and this cannot
be inferred from its type alone (e.g., compacted clip+cull distances)

cc: mesa-stable

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24163>
src/compiler/nir/nir_gather_info.c
src/freedreno/vulkan/tu_shader.cc
src/gallium/auxiliary/nir/nir_to_tgsi_info.c
src/gallium/frontends/lavapipe/lvp_pipeline.c
src/intel/compiler/brw_fs_nir.cpp