mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
read-only mirror of https://gitlab.freedesktop.org/mesa/mesa
Running the optimizations after bool to float/int lowering is not going
to work. Large portions of NIR are likely to blow up if they see
floats/ints in weird places. Most of the bool->float/int conversions
are direct instruction substitutions and it's not going to leave a lot
of garbage around to optimize.
Fixes nir.h:261: nir_const_value_as_bool: Assertion `i == 0 || i == -1' failed
dEQP-GLES2.functional.shaders.loops.while_constant_iterations.no_iterations_vertex
Here are shader-db results for GC2000:
instructions HURT: shaders/tesseract/488.shader_test FRAG: 516 -> 524 (1.55%)
instructions HURT: shaders/tesseract/491.shader_test FRAG: 248 -> 260 (4.84%)
instructions HURT: shaders/tesseract/494.shader_test FRAG: 244 -> 256 (4.92%)
instructions HURT: shaders/tesseract/238.shader_test FRAG: 232 -> 244 (5.17%)
instructions HURT: shaders/tesseract/241.shader_test FRAG: 232 -> 244 (5.17%)
instructions HURT: shaders/tesseract/127.shader_test FRAG: 76 -> 80 (5.26%)
instructions HURT: shaders/tesseract/130.shader_test FRAG: 148 -> 156 (5.41%)
instructions HURT: shaders/tesseract/226.shader_test FRAG: 192 -> 204 (6.25%)
instructions HURT: shaders/tesseract/229.shader_test FRAG: 192 -> 204 (6.25%)
instructions HURT: shaders/tesseract/217.shader_test FRAG: 152 -> 164 (7.89%)
instructions HURT: shaders/tesseract/214.shader_test FRAG: 152 -> 164 (7.89%)
instructions HURT: shaders/tesseract/205.shader_test FRAG: 112 -> 124 (10.71%)
instructions HURT: shaders/tesseract/202.shader_test FRAG: 112 -> 124 (10.71%)
instructions HURT: shaders/tesseract/169.shader_test FRAG: 32 -> 36 (12.50%)
instructions HURT: shaders/tesseract/166.shader_test FRAG: 32 -> 36 (12.50%)
instructions HURT: shaders/deqp_gles3/61312.shader_test FRAG: 448 -> 508 (13.39%)
instructions HURT: shaders/deqp_gles3/61309.shader_test FRAG: 448 -> 508 (13.39%)
instructions HURT: shaders/deqp_gles3/61324.shader_test FRAG: 448 -> 508 (13.39%)
instructions HURT: shaders/tesseract/118.shader_test FRAG: 28 -> 32 (14.29%)
instructions HURT: shaders/tesseract/181.shader_test FRAG: 52 -> 60 (15.38%)
instructions HURT: shaders/tesseract/178.shader_test FRAG: 52 -> 60 (15.38%)
instructions HURT: shaders/tesseract/121.shader_test FRAG: 52 -> 60 (15.38%)
instructions HURT: shaders/tesseract/193.shader_test FRAG: 72 -> 84 (16.67%)
instructions HURT: shaders/tesseract/190.shader_test FRAG: 72 -> 84 (16.67%)
total instructions in shared programs: 64220 -> 64572 (0.55%)
instructions in affected programs: 4924 -> 5276 (7.15%)
helped: 5
HURT: 24
helped stats (abs) min: 4 max: 8 x̄: 5.60 x̃: 4
helped stats (rel) min: 4.35% max: 5.41% x̄: 4.72% x̃: 4.35%
HURT stats (abs) min: 4 max: 60 x̄: 15.83 x̃: 12
HURT stats (rel) min: 1.55% max: 16.67% x̄: 10.04% x̃: 10.71%
95% mean confidence interval for instructions value: 5.39 18.89
95% mean confidence interval for instructions %-change: 4.81% 10.18%
Instructions are HURT.
total temps in shared programs: 2514 -> 2512 (-0.08%)
temps in affected programs: 9 -> 7 (-22.22%)
helped: 2
HURT: 0
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7624>
(cherry picked from commit
|
||
|---|---|---|
| .appveyor | ||
| .gitlab/issue_templates | ||
| .gitlab-ci | ||
| bin | ||
| build-support | ||
| docs | ||
| doxygen | ||
| include | ||
| scons | ||
| src | ||
| subprojects | ||
| .dir-locals.el | ||
| .editorconfig | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mailmap | ||
| .pick_status.json | ||
| .travis.yml | ||
| Android.common.mk | ||
| Android.mk | ||
| appveyor.yml | ||
| CleanSpec.mk | ||
| common.py | ||
| meson.build | ||
| meson_options.txt | ||
| README.rst | ||
| REVIEWERS | ||
| SConstruct | ||
| VERSION | ||
`Mesa <https://mesa3d.org>`_ - The 3D Graphics Library ====================================================== Source ------ This repository lives at https://gitlab.freedesktop.org/mesa/mesa. Other repositories are likely forks, and code found there is not supported. Build & install --------------- You can find more information in our documentation (`docs/install.rst <https://mesa3d.org/install.html>`_), but the recommended way is to use Meson (`docs/meson.rst <https://mesa3d.org/meson.html>`_): .. code-block:: sh $ mkdir build $ cd build $ meson .. $ sudo ninja install Support ------- Many Mesa devs hang on IRC; if you're not sure which channel is appropriate, you should ask your question on `Freenode's #dri-devel <irc://chat.freenode.net#dri-devel>`_, someone will redirect you if necessary. Remember that not everyone is in the same timezone as you, so it might take a while before someone qualified sees your question. To figure out who you're talking to, or which nick to ping for your question, check out `Who's Who on IRC <https://dri.freedesktop.org/wiki/WhosWho/>`_. The next best option is to ask your question in an email to the mailing lists: `mesa-dev\@lists.freedesktop.org <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>`_ Bug reports ----------- If you think something isn't working properly, please file a bug report (`docs/bugs.rst <https://mesa3d.org/bugs.html>`_). Contributing ------------ Contributions are welcome, and step-by-step instructions can be found in our documentation (`docs/submittingpatches.rst <https://mesa3d.org/submittingpatches.html>`_). Note that Mesa uses gitlab for patches submission, review and discussions.