From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 32511] glDrawPixels broken on savage
Date: Sat, 12 Feb 2011 04:13:17 -0800 (PST) [thread overview]
Message-ID: <20110212121317.76AFD13004F@annarchy.freedesktop.org> (raw)
In-Reply-To: <bug-32511-502@http.bugs.freedesktop.org/>
https://bugs.freedesktop.org/show_bug.cgi?id=32511
--- Comment #14 from Tormod Volden <bugzi09.fdo.tormod@xoxy.net> 2011-02-12 04:13:17 PST ---
I have tracked this down to kernel commit
41c2e75e60200a860a74b7c84a6375c105e7437f:
...
But also, because userspace isn't capable of passing such offsets,
I had to modify drm_find_matching_map() to ignore the offset passed
in for maps of type _DRM_FRAMEBUFFER or _DRM_REGISTERS.
If we ever support multiple _DRM_FRAMEBUFFER or _DRM_REGISTERS maps
for a given device, we might have to change that trick, but I don't
think that happens on any current driver.
The savage driver uses one drm map for the framebuffer and a second for the
apertures (which for most cards are in the same BAR, but offset by 0x2000000).
Since above commit (in 2.6.30) the drm will confuse the two maps, and return
the handle of the first when DRI tries to map the second. This explains why the
workaround in comment 10 worked (on most cards).
I will try to modify the DDX to create only one DRM map which covers both
framebuffer and apertures (kind of what happens already). Corresponding changes
will be needed in mesa to deal with the offset of the apertures in the
framebuffer map.
For Paramount and Savage 2000 chipsets it is more complicated, since here the
frontbuffer and apertures are in separate PCI BARs. Maybe one drm map can work
here also, but the offset may be different. Not sure how to report the offset
to mesa without breaking the savage ABI.
Or should really the kernel drm be fixed to support multiple framebuffer maps?
--
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-12 12:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-19 21:11 [Bug 32511] New: glDrawPixels broken on savage bugzilla-daemon
2010-12-19 21:13 ` [Bug 32511] " bugzilla-daemon
2010-12-19 21:14 ` bugzilla-daemon
2010-12-19 21:15 ` bugzilla-daemon
2010-12-19 21:18 ` bugzilla-daemon
2010-12-20 18:34 ` bugzilla-daemon
2010-12-20 18:53 ` bugzilla-daemon
2010-12-22 0:39 ` bugzilla-daemon
2011-01-06 23:01 ` bugzilla-daemon
2011-01-06 23:15 ` bugzilla-daemon
2011-01-06 23:31 ` bugzilla-daemon
2011-01-08 12:09 ` bugzilla-daemon
2011-01-08 22:40 ` bugzilla-daemon
2011-01-09 12:42 ` bugzilla-daemon
2011-01-17 21:57 ` bugzilla-daemon
2011-01-25 19:23 ` bugzilla-daemon
2011-02-12 12:13 ` bugzilla-daemon [this message]
2011-04-03 21:43 ` bugzilla-daemon
2011-04-05 14:53 ` bugzilla-daemon
2011-06-14 21:32 ` 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=20110212121317.76AFD13004F@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).