Skip to content
Snippets Groups Projects
Forked from Mesa / mesa
84818 commits behind the upstream repository.
Matt Turner's avatar
Matt Turner authored
The EU compaction unit test fuzzes the compaction code by flipping bits.
We use a simple skip_bits() function with a list of reserved bits to
ignore, but for more complex cases like invalid combinations of register
file:type, we need either machinery to check validity or for these
functions to simply inform us whether a combination was valid.

enum brw_reg_type a 4-bit field in brw_reg, so rather than expanding it
with an "INVALID" value, just return -1 and let the caller check for
that.

Scott suggested redefining unreachable() within the unit test to
longjmp() which would allow driver code like this to still use it and
allow the test to handle expected failures like this. If that plan works
out, I plan to revert this.
ded9fb2b
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.html), but the recommended way is to use Meson (docs/meson.html):

$ 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, 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.html).

Contributing

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

Note that Mesa uses email mailing-lists for patches submission, review and discussions.