glsl: change ast_type_qualifier bitset size to work around GCC 5.4 bug
authorBrian Paul <brianp@vmware.com>
Tue, 8 May 2018 14:24:21 +0000 (08:24 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 9 May 2018 01:06:09 +0000 (19:06 -0600)
commit901db25d5b7cd2ac2dd648b370c4bddf23dd5c44
treecd663399b60ea12795d63f8814695e27e04fdbc1
parent20f06bc72b73491b2c8d56f2da2426c6fd3b4d4a
glsl: change ast_type_qualifier bitset size to work around GCC 5.4 bug

Change the size of the bitset from 128 bits to 96.  This works around an
apparent GCC 5.4 bug in which bad SSE code is generated, leading to a
crash in ast_type_qualifier::validate_in_qualifier() (ast_type.cpp:654).

This can be repro'd with the Piglit test tests/spec/glsl-1.50/execution/
varying-struct-basic-gs-fs.shader_test

Bugzilla:https://bugs.freedesktop.org/show_bug.cgi?id=105497
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Tested-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/ast.h