Bug 55294 - Running EGL demos on DRM from mesa-demos causes a corrupted output on NV50
Summary: Running EGL demos on DRM from mesa-demos causes a corrupted output on NV50
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 21:39 UTC by Lubosz Sarnecki
Modified: 2012-10-10 13:18 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
kernel log with nouveau.reg_debug=0x600 (121.19 KB, text/plain)
2012-09-24 21:39 UTC, Lubosz Sarnecki
Details
Photograph of corrupted output (477.44 KB, image/jpeg)
2012-09-24 21:39 UTC, Lubosz Sarnecki
Details
demo log with verbose egl flags (895 bytes, text/x-log)
2012-09-25 20:51 UTC, Lubosz Sarnecki
Details
fix (2.07 KB, patch)
2012-09-29 01:19 UTC, Marcin Slusarz
Details | Splinter Review
fix v2 (1.55 KB, patch)
2012-10-02 00:14 UTC, Marcin Slusarz
Details | Splinter Review

Description Lubosz Sarnecki 2012-09-24 21:39:02 UTC
Created attachment 67649 [details]
kernel log with nouveau.reg_debug=0x600

When I try to run the mesa demos on the EGL/DRM backend I get a corrupted screen. 

You can find the demos here: http://cgit.freedesktop.org/mesa/demos/tree/src/egl/opengl

The binaries for the EGL/DRM backend have a "_screen" suffix.
The demos are using eglut with the eglut_screen/drm backend.

The following kernel errors are printed:
[drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x086c Data 0x00005564 (0x0084 0x04)
[drm] nouveau 0000:01:00.0: EvoCh 1 Mthd 0x080c Data 0x00005564 (0x0084 0x04)

You can find a screenshot and an kernel log with the "nouveau.reg_debug=0x600" flag in the attachment.

Kernel 3.6.0 RC5 on NV50.

A similar kernel error can be found in this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=27483
Comment 1 Lubosz Sarnecki 2012-09-24 21:39:52 UTC
Created attachment 67650 [details]
Photograph of corrupted output
Comment 2 Lubosz Sarnecki 2012-09-25 20:50:15 UTC
joi on the irc figured out that it has to do with the resolution I am trying to set (1366 x 768).

With his patch on the demos http://bpaste.net/show/47560/ I was able to set a 1280 x 768 resolution successfully.
Comment 3 Lubosz Sarnecki 2012-09-25 20:51:08 UTC
Created attachment 67694 [details]
demo log with verbose egl flags
Comment 4 Marcin Slusarz 2012-09-29 01:19:19 UTC
Created attachment 67841 [details] [review]
fix

This patch should do the trick.
Comment 5 Lubosz Sarnecki 2012-09-29 13:20:19 UTC
Thank you very much for the patch. With the patched mesa I could successfully run the eglut demos with my native resolution on linux 3.6.0 rc7.

Should this be a mesa / gallium bug then?
Comment 6 Marcin Slusarz 2012-10-02 00:14:37 UTC
Created attachment 67956 [details] [review]
fix v2

Yes. This is Mesa-side bug. I've changed product/component.

After closer look, I came to a conclusion that my patch was not quite correct. Please test the new one (although I managed to reproduced this issue and both patches fix it).
Comment 7 Emil Velikov 2012-10-10 13:18:35 UTC
The patch has been pushed upstream
master 93eba269351c6e256db3a4cc7c7018f5a3fae5a1

Please reopen if the issue persist


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.