mesa/src/panfrost
Alyssa Rosenzweig 311bfd0623 pan/mdg: Optimize b32csel(inot) in NIR
This is a generic algebraic optimization. Use the generic algebraic optimizer.

The only reason we can't rely on nir_opt_algebraic to do this is because we
generate inot's late in order to optimize some comparisons. But we already have
a pass to clean that up (midgard_nir_clean_inot), it just needs to be extended
to handle more cases.

shader-db is noise:

total bundles in shared programs: 646941 -> 646942 (<.01%)
bundles in affected programs: 100 -> 101 (1.00%)
helped: 0
HURT: 1

total quadwords in shared programs: 1134727 -> 1134726 (<.01%)
quadwords in affected programs: 318 -> 317 (-0.31%)
helped: 2
HURT: 1

total registers in shared programs: 90619 -> 90618 (<.01%)
registers in affected programs: 12 -> 11 (-8.33%)
helped: 1
HURT: 0

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23769>
2023-06-30 16:29:35 -04:00
..
ci ci/panfrost: switch panfrost-g52-piglit-gles2 from X to XWayland 2023-06-22 10:27:38 +00:00
compiler pan/bi: Use lower_frag_coord_to_pixel_coord 2023-06-27 14:38:21 +00:00
drm-shim panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
ds panfrost: rename *.cc files to *.cpp 2023-05-26 18:07:38 +01:00
include panfrost: Re-run clang-format 2023-04-10 21:56:04 +00:00
lib panfrost: Replace the usage of PIPE_BIND_* with PAN_BIND_* 2023-06-10 14:54:11 +00:00
midgard pan/mdg: Optimize b32csel(inot) in NIR 2023-06-30 16:29:35 -04:00
perf panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
util pan: use imm-helpers 2023-06-29 07:08:18 +00:00
vulkan panfrost: Replace the usage of PIPE_BIND_* with PAN_BIND_* 2023-06-10 14:54:11 +00:00
.clang-format panfrost: Use the Mesa base style 2023-05-29 21:06:12 +00:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00