mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 08:48:14 +02:00
read-only mirror of https://gitlab.freedesktop.org/mesa/mesa
After removing the TGSI layer, load_const values will be emitted directly as RC immediates without the scalar packing that tgsi_ureg used to do. This can push fragment shaders past the 32-slot hardware limit on R3xx/R4xx. Swap dead_constants and dataflow_swizzles pass order so constant compaction runs before swizzle legalization, giving the legalization pass an accurate slot count to work with. In rc_remove_unused_constants, when the slot budget is tight on R3xx/R4xx, enable aggressive packing for vec-used immediates. Deduplicate repeated values within an immediate and merge subsequent vec immediates into existing slots by matching values and filling free channels. Very small win on R5xx and very small hit on R3xx/R4xx (due to smaller amount of legal swizzles). Shader-db RV530: total cycles in shared programs: 191452 -> 191425 (-0.01%) cycles in affected programs: 5168 -> 5141 (-0.52%) helped: 24 HURT: 10 total temps in shared programs: 17046 -> 17037 (-0.05%) temps in affected programs: 201 -> 192 (-4.48%) helped: 11 HURT: 5 total consts in shared programs: 94033 -> 94030 (<.01%) consts in affected programs: 277 -> 274 (-1.08%) helped: 5 HURT: 5 total instructions in shared programs: 128840 -> 128823 (-0.01%) instructions in affected programs: 3588 -> 3571 (-0.47%) helped: 25 HURT: 12 RV410: total cycles in shared programs: 176230 -> 176270 (0.02%) cycles in affected programs: 20598 -> 20638 (0.19%) helped: 51 HURT: 66 total temps in shared programs: 19655 -> 19650 (-0.03%) temps in affected programs: 1310 -> 1305 (-0.38%) helped: 37 HURT: 25 total instructions in shared programs: 119346 -> 119379 (0.03%) instructions in affected programs: 13884 -> 13917 (0.24%) helped: 58 HURT: 65 total consts in shared programs: 86146 -> 86412 (0.31%) consts in affected programs: 3093 -> 3359 (8.60%) helped: 8 HURT: 182 Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41618> |
||
|---|---|---|
| .ci-farms | ||
| .ci-farms-disabled | ||
| .github/workflows | ||
| .gitlab | ||
| .gitlab-ci | ||
| .marge/hooks | ||
| android | ||
| bin | ||
| build-support | ||
| docs | ||
| include | ||
| licenses | ||
| src | ||
| subprojects | ||
| .clang-format | ||
| .clang-format-ignore | ||
| .clang-format-include | ||
| .dir-locals.el | ||
| .editorconfig | ||
| .git-blame-ignore-revs | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .graphqlrc.yml | ||
| .mailmap | ||
| .mr-label-maker.yml | ||
| .shellcheckrc | ||
| clippy.toml | ||
| CODEOWNERS | ||
| meson.build | ||
| meson.options | ||
| README.rst | ||
| rustfmt.toml | ||
| 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://docs.mesa3d.org/install.html>`_), but the recommended way is to use Meson (`docs/meson.rst <https://docs.mesa3d.org/meson.html>`_): .. code-block:: sh $ meson setup build $ ninja -C build/ $ sudo ninja -C build/ install Support ------- Many Mesa devs hang on IRC; if you're not sure which channel is appropriate, you should ask your question on `OFTC's #dri-devel <irc://irc.oftc.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://docs.mesa3d.org/bugs.html>`_). Contributing ------------ Contributions are welcome, and step-by-step instructions can be found in our documentation (`docs/submittingpatches.rst <https://docs.mesa3d.org/submittingpatches.html>`_). Note that Mesa uses gitlab for patches submission, review and discussions.