mesa/src/gallium/auxiliary/nir
Emma Anholt db930bd91b nir_to_tgsi: Allow SSA defs to include swizzles, abs, and neg.
This will let some copy prop happen automatically, avoiding MOVs to temps.
Most importantly, though, it means that virgl won't see (unused channel)
swizzles from channels beyond the bounds of sysvals, which trigger shader
compile failures on the host.

softpipe shader-db:

total instructions in shared programs: 2946336 -> 2934777 (-0.39%)
instructions in affected programs: 374676 -> 363117 (-3.09%)
total temps in shared programs: 565552 -> 564139 (-0.25%)
temps in affected programs: 18138 -> 16725 (-7.79%)

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781>
2021-09-09 22:02:52 +00:00
..
nir_draw_helpers.c aux/draw: fix aalines and aapoints for shaders with explicit FragData outputs 2021-06-02 10:13:34 +00:00
nir_draw_helpers.h gallium: Wrap some header files into "extern C" 2020-11-10 15:37:07 +00:00
nir_to_tgsi.c nir_to_tgsi: Allow SSA defs to include swizzles, abs, and neg. 2021-09-09 22:02:52 +00:00
nir_to_tgsi.h gallium/ntt: Add default compiler options for non-native-NIR drivers. 2020-10-20 23:32:26 +00:00
nir_to_tgsi_info.c gallium/nir/tgsi: initialize file_max for inputs 2021-08-19 10:51:01 +00:00
nir_to_tgsi_info.h meson/gallium: Add an option to not use LLVM for gallium draw module 2021-02-25 17:48:16 +00:00
tgsi_to_nir.c mesa/st: Add an optional GLSL link fail msg to finalize_nir. 2021-09-06 18:09:25 +00:00
tgsi_to_nir.h gallium/nir: Wrap tgsi_to_nir header in extern C 2020-11-10 15:37:07 +00:00