<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [IVB/HSW] ogl-samples: gl-320-fbo-layered render error with “grid”"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76397#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [IVB/HSW] ogl-samples: gl-320-fbo-layered render error with “grid”"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76397">bug 76397</a>
              from <span class="vcard"><a class="email" href="mailto:itoral@igalia.com" title="Iago Toral <itoral@igalia.com>"> <span class="fn">Iago Toral</span></a>
</span></b>
        <pre>Looking at the code in the test I think the result obtained in Mesa is correct
and the reference expected output is actually wrong.

When rendering to the main framebuffer, the test first clears it in *white*
like this:

glBindFramebuffer(GL_FRAMEBUFFER, 0);
glClearBufferfv(GL_COLOR, 0, &glm::vec4(1.0f, 1.0f, 1.0f, 1.0f)[0]);

Then renders to it with 4 different viewports with these configurations:

Viewport 0: x=2,   y=2,   w=316, h=236
Viewport 1: x=322, y=1,   w=316, h=236
Viewport 2: x=322, y=242, w=316, h=236
Viewport 3: x=2,   y=242, w=316, h=236

So obviously, there are gaps that are not being rendered and will show in the
color in which the color buffer was cleared (i.e. white).

I'll ping the developers of ogl-samples about this.</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>