Summary: | [glsl2] GL_ARB_draw_buffers unsupported in vertex shader | ||
---|---|---|---|
Product: | Mesa | Reporter: | Gordon Jin <gordon.jin> |
Component: | glsl-compiler | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | fangxun <xunx.fang> |
Severity: | minor | ||
Priority: | low | ||
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Gordon Jin
2010-07-20 18:27:06 UTC
As mentioned in the comment in the test, I'm not 100% sure which behavior is correct. Nvidia and ATI each do the opposite in their compilers, and the spec (GL_ARB_draw_buffers) doesn't provide any guidance. I'm decreasing the severity. commit 6aba035f6b0dee0e0b78b2110fa75463c7888c3a Author: Kenneth Graunke <kenneth@whitecape.org> Date: Mon Jul 29 10:40:51 2013 -0700 glsl: Remove shader stage checking for extension handling. Certain extensions only add functionality to particular shader stages. (For example, ARB_draw_instanced only adds variables to the vertex shader stage.) Previously, we only allowed such extensions to be enabled in the shader stages where they're useful. However, I've never found any text which mandates that behavior; in my opinion, you should be able to turn on extensions in any shader stage, even if they have no effect. Fixes Piglit tests glslparsertest/glsl2/draw_buffers-05.vert and ARB_draw_instanced/preprocessor/feature-macro-enabled.frag. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29185 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> This commit is now queued for 9.1 and 9.2 branches. Xun, please help verify. Verified it on mesa 10.2 branch. |
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.