Summary: | Failed to recongnize keyword of shader code | ||
---|---|---|---|
Product: | Mesa | Reporter: | Zhaowei Yuan <zhaowei.yuan> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 17.1 | ||
Hardware: | ARM | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Zhaowei Yuan
2018-06-05 07:32:04 UTC
That is indeed a bug, GLSL ES 1.0.17 specifies that "double" is a keyword reserved for future use. The fix is to change glsl_lexer.ll to be double TYPE_WITH_ALT(130, 100, 130, 300, yyextra->ARB_gpu_shader_fp64_enable, glsl_type::double_type) instead of 130, 300, 130, 300. Want to send a patch or should I? (In reply to Kenneth Graunke from comment #1) > That is indeed a bug, GLSL ES 1.0.17 specifies that "double" is a keyword > reserved for future use. The fix is to change glsl_lexer.ll to be > > double TYPE_WITH_ALT(130, 100, 130, 300, > yyextra->ARB_gpu_shader_fp64_enable, glsl_type::double_type) > > instead of 130, 300, 130, 300. Want to send a patch or should I? Thanks, I've verified it and I'll send a patch later Mesa passes the GLES3 variant of this test. Also, the test is listed in the following dEQP source file: android/cts/master/src/gles2-failures.txt Are we sure that this test should pass on GLES2? (In reply to Mark Janes from comment #3) > Mesa passes the GLES3 variant of this test. Also, the test is listed in the > following dEQP source file: > > android/cts/master/src/gles2-failures.txt > > Are we sure that this test should pass on GLES2? Yes. That just means the test isn't required as part of the Android conformance process (i.e. on the must-pass list). The spec is pretty clear. patch has been posted here: https://patchwork.freedesktop.org/patch/227593/ please review it Fixed by: commit 67f7a16b598513d25319e482359a4c4c6fc1271d Author: zhaowei yuan <zhaowei.yuan@samsung.com> Date: Tue Jun 5 05:33:59 2018 +0800 glsl: Take 'double' as reserved after GLSL ES 1.0 GLSL ES 1.0.17 specifies that "double" is a keyword reserved Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106823 Signed-off-by: zhaowei yuan <zhaowei.yuan@samsung.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.