From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 33867] [bisected] Graphics corruption related to pageflip ioctl support in 2.6.38-rc*
Date: Sat, 5 Feb 2011 14:15:29 -0800 (PST) [thread overview]
Message-ID: <20110205221529.4DF042DC012@annarchy.freedesktop.org> (raw)
In-Reply-To: <bug-33867-502@http.bugs.freedesktop.org/>
https://bugs.freedesktop.org/show_bug.cgi?id=33867
--- Comment #9 from Mario Kleiner <mario.kleiner@tuebingen.mpg.de> 2011-02-05 14:15:29 PST ---
Looking at your description and the "look-alike bug" youtube video, i wonder if
it could be some synchronization bug in mesa, the ddx or a running desktop
compositor instead of a kernel bug. Something for which pageflipping is a
neccessary condition to show up.
This...
<https://www.crowproductions.de/repos/prboom/branches/prboom-plus-24/prboom2/src/gl_wipe.c>
...i believe is the code responsible for the wipe effect which goes wrong. They
take a screenshot of the start screen before the transition into a texture and
another screenshot of the end screen after the transition. Then they go through
a loop were they draw textured quads, first the fullscreen start-screen
texture, then little stripes with bits of the end screen texture.
If the wipe_scr_start_tex texture would contain all-black, you'd get the visual
artifacts you describe. That could be because they are capturing an all-black
framebuffer instead of the proper one, e.g., because mesa fails to synchronize
its framebuffer readback into textures properly with the pageflip, or because
it reads from the wrong buffer (pre-pageflip vs. post-pageflip).
Without pageflipping (enabled), there isn't any buffer exchange between front-
and backbuffer, so a possible bug in mesa would probably stay hidden.
I do remember that we had to fix some such bugs in the mesa classic driver,
also for the framebuffer readback path, i don't know about the status of the
gallium version.
You could disable page-flipping via the xorg.conf option "EnablePageFlip" "off"
(iirc) and see if that "fixes" the problem without removing any patches. Or if
disabling desktop composition makes a difference. One could also mess with that
file to see if something changes. E.g., adding a glFlush() or glFinish() or
some wait for a few hundred msecs before executing the screenshot makes a
difference. Or just display the screenshot texture for a few seconds to see if
it is indeed a black texture.
-mario
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next prev parent reply other threads:[~2011-02-05 22:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 9:39 [Bug 33867] New: [bisected] Graphics corruption related to pageflip ioctl support in 2.6.38-rc* bugzilla-daemon
2011-02-03 9:56 ` [Bug 33867] " bugzilla-daemon
2011-02-04 3:46 ` bugzilla-daemon
2011-02-05 18:57 ` bugzilla-daemon
2011-02-05 18:58 ` bugzilla-daemon
2011-02-05 19:02 ` bugzilla-daemon
2011-02-05 19:04 ` bugzilla-daemon
2011-02-05 19:29 ` bugzilla-daemon
2011-02-05 19:56 ` bugzilla-daemon
2011-02-05 22:15 ` bugzilla-daemon [this message]
2011-02-05 23:43 ` bugzilla-daemon
2011-02-06 0:02 ` bugzilla-daemon
2011-02-06 0:24 ` bugzilla-daemon
2011-02-06 0:33 ` bugzilla-daemon
2011-04-12 2:59 ` bugzilla-daemon
2011-04-14 17:56 ` bugzilla-daemon
2012-07-22 19:58 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110205221529.4DF042DC012@annarchy.freedesktop.org \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.