<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Black windows in weston after update mesa to 11.0.2-1"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92265#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Black windows in weston after update mesa to 11.0.2-1"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92265">bug 92265</a>
from <span class="vcard"><a class="email" href="mailto:elima@igalia.com" title="Eduardo Lima Mitev <elima@igalia.com>"> <span class="fn">Eduardo Lima Mitev</span></a>
</span></b>
<pre>I just sent for review a piglit test that checks that the combination of
internalFormat=GL_BGRA_EXT, format=GL_BGRA_EXT and type=GL_UNSIGNED_BYTE is
valid on TexImageXD and TexSubImageXD, as specified by the extension
<<a href="https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_format_BGRA8888.txt">https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_format_BGRA8888.txt</a>>:
<a href="http://lists.freedesktop.org/archives/piglit/2015-October/017535.html">http://lists.freedesktop.org/archives/piglit/2015-October/017535.html</a>
This should prevent this regression in the future.
However, this test doesn't pass on master because current handling of GL_BGRA
format allows for this invalid combination (which is checked in the test):
internalFormat=GL_RGBA format=GL_BGRA_EXT and type=GL_UNSIGNED_BYTE
or
internalFormat=GL_BGRA_EXT format=GL_RGBA and type=GL_UNSIGNED_BYTE
So I also sent a patch to mesa-dev that improves this and make the test pass:
<a href="http://lists.freedesktop.org/archives/mesa-dev/2015-October/097211.html">http://lists.freedesktop.org/archives/mesa-dev/2015-October/097211.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>