<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Gallium picking A16L16 formats when emulating INTENSITY16 conflicts with mesa"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107832#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Gallium picking A16L16 formats when emulating INTENSITY16 conflicts with mesa"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107832">bug 107832</a>
from <span class="vcard"><a class="email" href="mailto:jasuarez@igalia.com" title="Juan A. Suarez <jasuarez@igalia.com>"> <span class="fn">Juan A. Suarez</span></a>
</span></b>
<pre>A patch to fix this landed in upstream:
commit 47e01e77d8b658606527f048cda786440f7fbe85
Author: Gert Wollny <<a href="mailto:gert.wollny@collabora.com">gert.wollny@collabora.com</a>>
Date: Mon Sep 10 12:39:44 2018 +0200
mesa/texture: Also check for LA texture when querying intensity component
size
Gallium may pick L16A16_FLOAT to represent GL_INTENSITY16F if no intensity
format is provided by the driver. However, when calling
glGetTexLevelParameteriv(..., GL_TEXTURE_INTENSITY_SIZE, ...)
mesa will return a zero size because the actually used format has no
intensity channel and as a fallback only the sizes of the red/green
channels are checked.
Also checking for LA sizes in the allocated texture resolves this problem.
v2: Only check alpha channel size and return it (Marek)
L and A size are always the same in this case.
Fixes (on virgl):
ext_framebuffer_multisample-fast-clear GL_ARB_texture_float *
Bugzilla: <a class="bz_bug_link
bz_status_NEW "
title="NEW - Gallium picking A16L16 formats when emulating INTENSITY16 conflicts with mesa"
href="show_bug.cgi?id=107832">https://bugs.freedesktop.org/show_bug.cgi?id=107832</a>
Signed-off-by: Gert Wollny <<a href="mailto:gert.wollny@collabora.com">gert.wollny@collabora.com</a>>
Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>>
src/mesa/main/texparam.c | 5 +++++
1 file changed, 5 insertions(+)
Can you check if this fixes the problem?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>