Bug 108983 - "Compute shaders require GLSL 4.30 or GLSL ES 3.10" even though ARB_compute_shader is available
Summary: "Compute shaders require GLSL 4.30 or GLSL ES 3.10" even though ARB_compute_s...
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 18.3
Hardware: Other All
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-08 17:59 UTC by github
Modified: 2018-12-09 15:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description github 2018-12-08 17:59:20 UTC
Good afternoon,

Both glxinfo and glewinfo tell me that GL_ARB_compute_shader is available on my hardware for OpenGL core profiles, although only OpenGL 4.2 profiles are supported. Excerpt from the glxinfo output:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 4.2 (Core Profile) Mesa 18.3.0
OpenGL core profile shading language version string: 4.20

So I created a 4.2 Core context and tried to load a compute shader. The glCompileShader call then gives me the error message:

error: Compute shaders require GLSL 4.30 or GLSL ES 3.10

But when I change the line in my shader to #version 430, I get:

error: GLSL 4.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 1.00 ES, and 3.00 ES

So either there is a bug that prevents me from using the GL_ARB_compute_shader extension, or I am doing something wrong or compute shaders are not (yet?) supported on my hardware and therefore should not appear in the glxinfo output.

Kind regards and thanks for making such an awesome software (apart from this bug I really love the quality of the Mesa OpenGL implementation)!
Comment 1 Lionel Landwerlin 2018-12-08 20:16:26 UTC
Are you missing :

#extension GL_ARB_compute_shader: enable

somewhere in your shader?
Comment 2 github 2018-12-09 15:26:34 UTC
Oh, damnit!

I thought I tried this, and it failed but probably I forgot to type the GL_ or something. Thank you very much for your time, it works now!


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.