+1
−0
Loading
Bug 1728064 - Add test to ensure shaders don't contain flat scalar varyings on android. r=gfx-reviewers,kvark There is a driver bug on Adreno 3xx devices causing incorrect rendering when flat scalar varyings are used in fragment shaders. This has occured several times in different shaders, so this patch finally adds a test to ensure it does not occur again. We have used the glsl crate to parse and validate the shaders rather than angle, as exposing the required bindings to mozangle is messy. We must therefore use the pre-optimized shaders as the glsl crate does not handle preprocessor directives correctly. This has been implemented as a wrench test rather than a unit test as running unit tests on android is difficult. Additionally we want to use the shaders specific to the platform the tests are ran on, the bug only affects (some) android devices, and shaders on other platforms may differ. Differential Revision: https://phabricator.services.mozilla.com/D124205