[Nouveau] [Bug 99400] [nouveau] garbled rendering with glamor on G71

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 31 12:37:26 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99400

--- Comment #21 from Olivier Fourdan <fourdan at xfce.org> ---
(In reply to Olivier Fourdan from comment #20)
> 
> I cannot load the file on nouveau where it was captured, it says
> 
>  | 2 @0 eglGetPlatformDisplayEXT(platform = EGL_PLATFORM_GBM_KHR,
> native_display = 0x26926b0, attrib_list = {}) = 0x26d8250
>  | 2: warning: unsupported eglGetPlatformDisplayEXT call
> error: failed to create OpenGL 3.1 context.

Quick follow up on this, this is because of the way glamor works, it first
creates an EGL context with some config attributes (which include the OpenGL
version 3.1) and if it fails, it retries with no config attributes:

https://cgit.freedesktop.org/xorg/xserver/tree/glamor/glamor_egl.c#n819

or for Xwayland:

https://cgit.freedesktop.org/xorg/xserver/tree/hw/xwayland/xwayland-glamor.c#n310

So back to apitrace, as the config attributes specifies OpenGL 3.1, it fails
and apitrace just stops there. So I changed Xwayland to not do the first call
(which on this HW returns NULL anyway) and now apitrace is a happy buddy, I can
replay the trace on nouveau as well.

Same links, updated files:

https://people.freedesktop.org/~ofourdan/bug99400/Xwayland.log
https://people.freedesktop.org/~ofourdan/bug99400/Xwayland.trace

> For example frame 8932 (toward the end) is interesting imho, [...]

Let's forget about this, now that the new trace can replay on both intel and
nouveau.

The problem I see is rather that I see no problem in apitrace, the frames look
fine, AFAICT.

And yet the rendering was wrong on screen when I captured the trace...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20170131/0a329965/attachment.html>


More information about the Nouveau mailing list