From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 99400] [nouveau] garbled rendering with glamor on G71 Date: Tue, 31 Jan 2017 12:37:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0213900131==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0213900131== Content-Type: multipart/alternative; boundary="14858662460.e7EdDfdc9.12936"; charset="UTF-8" --14858662460.e7EdDfdc9.12936 Date: Tue, 31 Jan 2017 12:37:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99400 --- Comment #21 from Olivier Fourdan --- (In reply to Olivier Fourdan from comment #20) >=20 > I cannot load the file on nouveau where it was captured, it says >=20 > | 2 @0 eglGetPlatformDisplayEXT(platform =3D EGL_PLATFORM_GBM_KHR, > native_display =3D 0x26926b0, attrib_list =3D {}) =3D 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 ca= ll (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 l= ook fine, AFAICT. And yet the rendering was wrong on screen when I captured the trace... --=20 You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.= --14858662460.e7EdDfdc9.12936 Date: Tue, 31 Jan 2017 12:37:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 21 on bug 99400<= /a> from Olivier Fourdan
(In reply to Olivier Fourdan from comment #20)
>=20
> I cannot load the file on nouveau where it was captured, it says
>=20
>  | 2 @0 eglGetPlatformDisplayEXT(platform =3D EGL_PLATFORM_GBM_KHR,
> native_display =3D 0x26926b0, attrib_list =3D {}) =3D 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/xwayla=
nd/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 ca=
ll
(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 inter=
esting 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 l=
ook
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.
= --14858662460.e7EdDfdc9.12936-- --===============0213900131== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9ub3V2ZWF1Cg== --===============0213900131==--