Bug 98589 - error: gl_Position redeclared even with EXT_separate_shader_objects
Summary: error: gl_Position redeclared even with EXT_separate_shader_objects
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 11.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 15:12 UTC by Pavel Rojtberg
Modified: 2016-11-04 15:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Rojtberg 2016-11-04 15:12:28 UTC
according to [1] gl_Position and gl_PointSize must be redeclared prior to use if
1. shaders are using "#version 300 es"
2. "#extension GL_EXT_separate_shader_objects : enable" is present

however MESA fails with "error: gl_Position redeclared" in this situation.
Note that this works if a core GL context instead of an GLES context is used.

[1] https://www.khronos.org/registry/gles/extensions/EXT/EXT_separate_shader_objects.txt


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.