Skip to content
Snippets Groups Projects
Forked from Mesa / mesa
52112 commits behind, 363 commits ahead of the upstream repository.
Emma Anholt's avatar
Emma Anholt authored
When we put NIR in the compiler stack for r300, indirect addressing broke
for gallium nine.  DX's array indirects round the float value, so the DX
shader gets mapped to a TGSI "ARR ADDR[0] src.x" instruction.  Translating
that to NIR maps to r0[f2i32(fround(src.x))].  While we might hope that in
translation back using nir-to-tgsi after optimization we would recognize
the construct and emit ARR again, that's going to be error prone (think
"what if src.x is in a NIR register?") so we need a fallback plan.  r300
will be able to handle this lowering, so get it in place first to fix the
regression.

Fixes: #6297
Fixes: 7d2ea9b0 ("r300: Request NIR shaders from mesa/st and use NIR-to-TGSI.")
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!15870>
(cherry picked from commit 6947016b)
4deeb4b5
History

Mesa - 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), but the recommended way is to use Meson (docs/meson.rst):

$ 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 OFTC's #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.

The next best option is to ask your question in an email to the mailing lists: mesa-dev@lists.freedesktop.org

Bug reports

If you think something isn't working properly, please file a bug report (docs/bugs.rst).

Contributing

Contributions are welcome, and step-by-step instructions can be found in our documentation (docs/submittingpatches.rst).

Note that Mesa uses gitlab for patches submission, review and discussions.