<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - dEQP-GLES3: Blit operation should perform sRGB encoding/decoding in OpenGL ES 3.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89636">89636</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dEQP-GLES3: Blit operation should perform sRGB encoding/decoding in OpenGL ES 3.0
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>apuentes@igalia.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Failed tests:
 [37 tests]
      * dEQP-GLES3.functional.fbo.blit.conversion.rgba8_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgba8
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgb10_a2
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgba4
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgb5_a1
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgb8
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgb565
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rg8
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_r8
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgba32f
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rgba16f
      *
dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_r11f_g11f_b10f
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rg32f
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_rg16f
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_r32f
      * dEQP-GLES3.functional.fbo.blit.conversion.srgb8_alpha8_to_r16f
      * dEQP-GLES3.functional.fbo.blit.conversion.rgb10_a2_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgba4_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgb5_a1_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgb8_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgb565_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rg8_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.r8_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgba32f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rgba16f_to_srgb8_alpha8
      *
dEQP-GLES3.functional.fbo.blit.conversion.r11f_g11f_b10f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rg32f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.rg16f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.r32f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.conversion.r16f_to_srgb8_alpha8
      * dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_nearest_scale_blit_from_default
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_nearest_scale_blit_to_default
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_linear_scale_blit_from_default
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_linear_scale_blit_to_default
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_linear_out_of_bounds_blit_from_default
      *
dEQP-GLES3.functional.fbo.blit.default_framebuffer.srgb8_alpha8_linear_out_of_bounds_blit_to_default

The tests fail because they expect sRGB enconding to be done during the blit
operation if the destination framebuffer is sRGB, and sRGB decoding when
reading if the read framebuffer is sRGB.

 - From section 4.3.3 ("Copying Pixels") of the OpenGL ES 3.0 specification
(page 198):

        "When values are taken from the read buffer, if the value of
        FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING for the framebuffer
        attachment corresponding to the read buffer is SRGB (see section
        6.1.13), the red, green, and blue components are converted from
        the non-linear sRGB color space according to equation 3.24.

        When values are written to the draw buffers, blit operations
        bypass the fragment pipeline. The only fragment operations which
        affect a blit are the pixel ownership test, the scissor test,
        and sRGB conversion (see section 4.1.8). Color, depth, and
        stencil masks (see section 4.2.2) are ignored."

However, Mesa does not do any sRGB encoding/decoding during the blit. For more
information see:
<a href="http://lists.freedesktop.org/archives/mesa-dev/2015-February/077681.html">http://lists.freedesktop.org/archives/mesa-dev/2015-February/077681.html</a></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>