mesa/src/compiler
Konstantin Seurer b88ac6b381 nir: Optimize fpow with small constant exponents
They would be turned into exp(log(a)*b) instead, which is slow.

Totals from 2146 (2.52% of 85071) affected shaders:
MaxWaves: 35769 -> 35779 (+0.03%); split: +0.03%, -0.01%
Instrs: 6476835 -> 6465494 (-0.18%); split: -0.18%, +0.00%
CodeSize: 35382288 -> 35347092 (-0.10%); split: -0.10%, +0.00%
SpillSGPRs: 1055 -> 1017 (-3.60%)
Latency: 75211743 -> 75063623 (-0.20%); split: -0.20%, +0.00%
InvThroughput: 17525115 -> 17501745 (-0.13%); split: -0.14%, +0.00%
VClause: 200089 -> 200077 (-0.01%); split: -0.01%, +0.01%
SClause: 293566 -> 293480 (-0.03%); split: -0.03%, +0.00%
Copies: 649631 -> 640516 (-1.40%); split: -1.44%, +0.03%
Branches: 268441 -> 268325 (-0.04%)
PreSGPRs: 146868 -> 146045 (-0.56%)
PreVGPRs: 134125 -> 134128 (+0.00%); split: -0.00%, +0.01%

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26727>
2024-01-02 11:16:14 +01:00
..
clc treewide: Replace the include of nir_types.h with glsl_types.h 2023-12-30 15:08:11 +00:00
glsl treewide: Replace the include of nir_types.h with glsl_types.h 2023-12-30 15:08:11 +00:00
isaspec isaspec: Add bool_inv type to print inverted bools 2023-12-16 14:34:18 +00:00
nir nir: Optimize fpow with small constant exponents 2024-01-02 11:16:14 +01:00
spirv treewide: Replace the include of nir_types.h with glsl_types.h 2023-12-30 15:08:11 +00:00
builtin_types.py compiler/types: Use Python to generate code for builtin types 2023-09-16 15:17:01 +00:00
builtin_types_c.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
builtin_types_h.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
glsl_types.c compiler/types: Use a typedef for glsl_type 2023-12-22 07:53:25 -08:00
glsl_types.h compiler/types: Use a typedef for glsl_type 2023-12-22 07:53:25 -08:00
meson.build treewide: Replace the include of nir_types.h with glsl_types.h 2023-12-30 15:08:11 +00:00
shader_enums.c nir: add lowering from FS LAYER input to LAYER_ID sysval 2023-11-24 15:37:24 +00:00
shader_enums.h nir: add lowering from FS LAYER input to LAYER_ID sysval 2023-11-24 15:37:24 +00:00
shader_info.h nir/serialize: untangle printf serialization from a particular stage 2023-12-12 11:11:10 +00:00