Bug 77724 - error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES
Summary: error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: unspecified
Hardware: All All
: medium blocker
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-21 10:28 UTC by Rohit Nandan
Modified: 2014-08-21 17:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Rohit Nandan 2014-04-21 10:28:31 UTC
I was trying to compile and run simple example programs from opengles programming guide 2.0 for opengles 3.0 and got follwing error.

I build mesa while building wayland and it also have dri3 but it doenot loads it.

Attaching the debug trace. What is the issue here and if follow exact intructions from https://github.com/danginsburg/opengles3-book/ then it says to use Powervr sdk which also results in similar error but with mesa egl following is the trace.



libEGL debug: Native platform type: x11 (autodetected)
libEGL debug: EGL search path is /home/rnandan/install/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: DRI2: dlopen(/home/rnandan/install/lib/dri/nouveau_dri.so)
libEGL debug: driver does not expose __driDriverGetExtensions_nouveau(): /home/rnandan/install/lib/dri/nouveau_dri.so: undefined symbol: __driDriverGetExtensions_nouveau

libEGL debug: DRI2: found extension `DRI_Core'
libEGL info: DRI2: found extension DRI_Core version 1
libEGL debug: DRI2: found extension `DRI_DRI2'
libEGL info: DRI2: found extension DRI_DRI2 version 4
libEGL debug: DRI2: found extension `DRI_ConfigOptions'
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
libEGL debug: DRI2: found extension `DRI_TexBuffer'
libEGL info: DRI2: found extension DRI_TexBuffer version 2
libEGL debug: DRI2: found extension `DRI2_Flush'
libEGL info: DRI2: found extension DRI2_Flush version 4
libEGL debug: DRI2: found extension `DRI_IMAGE'
libEGL info: DRI2: found extension DRI_IMAGE version 8
libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'
libEGL debug: DRI2: found extension `DRI2_Throttle'
libEGL debug: the best driver is DRI2
Error compiling shader:
0:1(10): error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES

Error compiling shader:
0:1(10): error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES

Mesa: User error: GL_INVALID_VALUE in glAttachShader
Error linking program:
error: program lacks a vertex shader

libEGL debug: Display 0x1abaa80 is destroyed with resources
rnandan@rnandan-lt:~/opengles3-book/build$ Chapter_2/Hello_Triangle/./Hello_Triangle 
libEGL debug: Native platform type: x11 (autodetected)
libEGL debug: EGL search path is /home/rnandan/install/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: DRI2: dlopen(/home/rnandan/install/lib/dri/nouveau_dri.so)
libEGL debug: driver does not expose __driDriverGetExtensions_nouveau(): /home/rnandan/install/lib/dri/nouveau_dri.so: undefined symbol: __driDriverGetExtensions_nouveau

libEGL debug: DRI2: found extension `DRI_Core'
libEGL info: DRI2: found extension DRI_Core version 1
libEGL debug: DRI2: found extension `DRI_DRI2'
libEGL info: DRI2: found extension DRI_DRI2 version 4
libEGL debug: DRI2: found extension `DRI_ConfigOptions'
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
libEGL debug: DRI2: found extension `DRI_TexBuffer'
libEGL info: DRI2: found extension DRI_TexBuffer version 2
libEGL debug: DRI2: found extension `DRI2_Flush'
libEGL info: DRI2: found extension DRI2_Flush version 4
libEGL debug: DRI2: found extension `DRI_IMAGE'
libEGL info: DRI2: found extension DRI_IMAGE version 8
libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'
libEGL debug: DRI2: found extension `DRI2_Throttle'
libEGL debug: the best driver is DRI2
Error compiling shader:
0:1(10): error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES

Error compiling shader:
0:1(10): error: GLSL ES 3.00 is not supported. Supported versions are: 1.00 ES

Mesa: User error: GL_INVALID_VALUE in glAttachShader
Error linking program:
error: program lacks a vertex shader

libEGL debug: Display 0x1a41a80 is destroyed with resources





with powervr sdk following is the trace. WHat is the problem with these.
While previously I was able to run all these examples with earlier version.
Comment 1 Rohit Nandan 2014-04-21 10:32:40 UTC
this is the error trace with powervr sdk.
les3-book/build$ Chapter_2/Hello_Triangle/./Hello_Triangle 
libGL: OpenDriver: trying /home/rnandan/install/lib/dri/nouveau_dri.so
libGL: driver does not expose __driDriverGetExtensions_nouveau(): /home/rnandan/install/lib/dri/nouveau_dri.so: undefined symbol: __driDriverGetExtensions_nouveau
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
libGL: Can't open configuration file /home/rnandan/.drirc: No such file or directory.
(Error) There is no context bound to the current thread.
(Error) There is no context bound to the current thread.
(Error) There is no context bound to the current thread.
Comment 2 Ilia Mirkin 2014-04-21 17:34:17 UTC
What hardware are you using?

Let's isolate a few of the more obvious issues you might run into...

Does glxinfo say that it's using nouveau? If you get glxinfo from git, it should also provide info about the GLES profile.
Comment 3 Rohit Nandan 2014-04-22 05:40:36 UTC
its nvidia's graphics card and noveau driver


On Mon, Apr 21, 2014 at 11:04 PM, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 2 <https://bugs.freedesktop.org/show_bug.cgi?id=77724#c2> on
> bug 77724 <https://bugs.freedesktop.org/show_bug.cgi?id=77724> from Ilia
> Mirkin <imirkin@alum.mit.edu> *
>
> What hardware are you using?
>
> Let's isolate a few of the more obvious issues you might run into...
>
> Does glxinfo say that it's using nouveau? If you get glxinfo from git, it
> should also provide info about the GLES profile.
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You are on the CC list for the bug.
>    - You reported the bug.
>
>
Comment 4 Ilia Mirkin 2014-08-21 17:12:31 UTC
ES3 was not supported until recently by nouveau (or any gallium driver). It should be now for nv50+. You can try it out on Mesa 10.3-rc1. Make sure to build with --enable-gles2.

If you're still having issues, feel free to reopen, but make sure to provide lots of additional info, like glxinfo output, pointer to the code you're running, etc.


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.