<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 --- - multiple uniform buffers problem"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84023">84023</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>multiple uniform buffers problem
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>ya.maxis11@yandex.ru
          </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>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=106468" name="attach_106468" title="c++ host">attachment 106468</a> <a href="attachment.cgi?id=106468&action=edit" title="c++ host">[details]</a></span>
c++ host

Today I tested how two uniform buffers work in mesa and find a bug, when unable
to edit second buffer. It's happen when you uses values from uniform buffers to
create vec4.

Vertex shader:
#version 330 core

uniform test_unif1
{
    float test1;
    float test2;
};

uniform test_unif2
{
    float test3;
    float test4;
};

in vec4 pos;
out vec4 fcolor;

void main(void)
{
    gl_Position = pos;
    fcolor = vec4(test1,test2,test3,test4);
}

test3 and test4 is unchangeable from c++ host. If I do this:

gl_Position = test4 * pos;
fcolor = vec4(test1,test2,test3,1.0f);

test3 and test4 will work ok. So I think it's a bug of driver.
Radeon 6480g + radeon 7470m. Ubuntu 14.10. Drivers from oibaf ppa.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>