[Mesa-dev] [PATCH mesa] util: use *unsigned* ints for bit operations

Dave Airlie airlied at gmail.com
Fri Nov 2 05:22:13 UTC 2018


On Tue, 23 Oct 2018 at 10:57, Eric Anholt <eric at anholt.net> wrote:
>
> Eric Engestrom <eric.engestrom at intel.com> writes:
>
> > Fixes errors thrown by GCC's Undefined Behaviour sanitizer (ubsan) every
> > time this macro is used.

This seems to be causing problems for me here on gcc8 (8.0.1 and
8.2.1) in Fedora 28.

./bin/texelFetch fs usampler2DMS 2

is failing here with:
Failed to compile fragment shader: 0:6(1): error: invalid input layout
qualifier used

gcc is probably broken, but we might want to revert his from the tree
and upcoming release until we can figure it out.

Dave.


More information about the mesa-dev mailing list