Summary: | Compiler accepts reserved operators % and %= | ||
---|---|---|---|
Product: | Mesa | Reporter: | Chad Versace <chadversary> |
Component: | glsl-compiler | Assignee: | Chad Versace <chadversary> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | low | CC: | idr |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Fix for bug. |
Description
Chad Versace
2011-02-04 12:47:26 UTC
We should definitely fix this. We don't want to encourage apps to assume that out-of-spec code will work. I think the version check should be done in modulus_result_type. This matches the way other 1.30 operators (e.g., the bit-wise operators) are handled. Marking FIXED. Ian, I followed your advice and placed the code in modulus_result_type(). Fixed by the following commit: commit 82f994f3860ca05ff5550f32844b0f523d40b9ef Author: Chad Versace <chad.versace@intel.com> Date: Fri Feb 4 12:18:56 2011 -0800 glsl: Set operators '%' and '%=' to be reserved when GLSL < 1.30 |
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.