<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [r600g] ogl-samples GL3.2 and GL3.3 tests doesn't run without overriding GL/GLSL version"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77582">77582</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[r600g] ogl-samples GL3.2 and GL3.3 tests doesn't run without overriding GL/GLSL version
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>b.bellec@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/r600
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The OpenGL 3.2 and 3.3 tests from the ogl-samples pack doesn't run on my
Evergreen card (HD 5850) if I don't override the env var with the good GL and
GLSL values.

Download and compiles the ogl-samples:
$ git clone <a href="https://github.com/g-truc/ogl-samples">https://github.com/g-truc/ogl-samples</a>
$ cmake .
$ make 
$ ./build/release/gl-320-primitive-sprite

In my case, the program starts but immediately stop, without error.

While if I launch with:
$ MESA_GL_VERSION_OVERRIDE=3.2 MESA_GLSL_VERSION_OVERRIDE=150
./build/release/gl-320-primitive-sprite

Then the program start as excepted.

I tested several ogl-320 and ogl-330 tests, all have the same issue.

glxinfo:
OpenGL renderer string: Gallium 0.4 on AMD CYPRESS
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel
(git-75e4875)
OpenGL core profile shading language version string: 3.30

Build config:
autogen.sh --with-gallium-drivers=r600 --with-dri-drivers=
--enable-texture-float --disable-dri3 --disable-r600-llvm-compiler
--disable-gallium-llvm --enable-64-bit CFLAGS="-O2 -m64" CXXFLAGS="-O2 -m64"
--libdir=/usr/lib64

Kernel 3.13.9-100.fc19.x86_64
libdrm 2.4.53-1.fc20

I don't know if it's a regression. I can test with earlier Mesa commit if you
point me to an old commit with still GL3.2 supports.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>