freedreno/ir3: Enable core NIR's 16-bit ALU optimizations.
authorEmma Anholt <emma@anholt.net>
Thu, 14 Jul 2022 18:33:19 +0000 (11:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 18 Jul 2022 22:41:18 +0000 (22:41 +0000)
commit3d62a41dcc050c07a78397b7693b2a5c58abf583
tree986a8cb98ee6ca72dbaf6af4a5800abf05db146a
parentfc26fbde3dddd04ea1d9817e01e28c88dcc17cee
freedreno/ir3: Enable core NIR's 16-bit ALU optimizations.

In addition to hopefully generating shorter code, this optimizes out a
comparison of a mediump-cast value in
dEQP-GLES2.functional.shaders.algorithm.rgb_to_hsl_fragment passed
through ANGLE, and allows the test to pass.  We believe it to be a
test bug, but emitting better code like apparently everyone else does
is also a fine result.

No change on GLES gfxbench shaders.

Fixes: #6585
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17546>
src/freedreno/ir3/ir3_compiler.c