[Nouveau] [Bug 109330] GL_ALPHA_BITS set to non-zero with EGL_PLATFORM_GBM_MESA
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 22 13:15:46 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=109330
--- Comment #6 from Daniel Stone <daniel at fooishbar.org> ---
Yeah, I think it's reasonable. The render target is XRGB8888, and X really does
mean undefined, including 'throw content away on render' and 'invent fake
content on sample'.
I'd suggest allocating the gbm_surface as GBM_SURFACE_ARGB8888, then taking
those BOs and passing DRM_FORMAT_XRGB8888 to AddFB2. This is totally safe to
do, and will ensure that drivers preserve the alpha channel when you write out.
(I was going to say about matching EGL_NATIVE_VISUAL_ID as well given your
short example, but you already do that properly - nice!)
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20190122/c3960926/attachment.html>
More information about the Nouveau
mailing list