https://bugs.freedesktop.org/show_bug.cgi?id=34280
Summary: r200 mesa-7.10 font distortion Product: Mesa Version: 7.10 Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/r200 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: nikai@nikai.net
Created an attachment (id=43358) --> (https://bugs.freedesktop.org/attachment.cgi?id=43358) Celestia screenshot mesa-7.10
r200 mesa-7.10 font distortion
With r200 and mesa-7.10, fonts appear distorted in some OpenGL applications, like Celestia, extreme-tuxracer, or oolite. In other applications they look alright, like Stellarium, or Supertuxracer. The same distortions appear with mesa-git (as of below commit).
With mesa-7.9.1, all fonts look alright.
System environment: -- system architecture: i686 -- Linux distribution: Gentoo -- GPU: R200 514D -- Model: ATI Radeon 9100 QM (AGP) -- Display connector: VGA -- xf86-video-ati: 6.14.0 -- xserver: 1.9.2 -- mesa: 07eb660fc92b63213b542d47671b0d944286b77a -- drm: 550fe2ca3b29ad2191eab4fdfbed9ed21e25492d -- kernel: 2.6.38-rc3
https://bugs.freedesktop.org/show_bug.cgi?id=34280
--- Comment #1 from Nicolas Kaiser nikai@nikai.net 2011-02-14 16:44:55 PST --- Created an attachment (id=43359) --> (https://bugs.freedesktop.org/attachment.cgi?id=43359) Celestia screenshot mesa-7.9.1
https://bugs.freedesktop.org/show_bug.cgi?id=34280
--- Comment #2 from Alex Deucher agd5f@yahoo.com 2011-02-14 22:15:28 PST --- Can you bisect?
https://bugs.freedesktop.org/show_bug.cgi?id=34280
--- Comment #3 from Nicolas Kaiser nikai@nikai.net 2011-02-15 07:38:24 PST --- (In reply to comment #2)
Can you bisect?
Sure, I bisected to 5d1387b2da3626326410804026f8b92f1a121fdc Ian Romanick, "ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formats".
https://bugs.freedesktop.org/show_bug.cgi?id=34280
--- Comment #4 from Nicolas Kaiser nikai@nikai.net 2011-02-18 14:24:35 PST --- I tried to partially revert the commit.
It looks to me like I can add R8, R16, and RG1616 without a problem. But when I add RG88, the distortions appear.
https://bugs.freedesktop.org/show_bug.cgi?id=34280
--- Comment #5 from Nicolas Kaiser nikai@nikai.net 2011-02-20 10:42:58 PST --- Created an attachment (id=43579) --> (https://bugs.freedesktop.org/attachment.cgi?id=43579) screenshot extreme-tuxracer mesa-git
This screenshot from extreme-tuxracer might give a better impression of the problem. Every letter appears to get duplicated.
https://bugs.freedesktop.org/show_bug.cgi?id=34280
Ian Romanick idr@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|dri-devel@lists.freedesktop |idr@freedesktop.org |.org |
--- Comment #6 from Ian Romanick idr@freedesktop.org 2011-02-21 14:34:36 PST --- (In reply to comment #3)
(In reply to comment #2)
Can you bisect?
Sure, I bisected to 5d1387b2da3626326410804026f8b92f1a121fdc Ian Romanick, "ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formats".
That's pretty weird. I don't see how that change could impact r200. The only thing that seems to have a chance is if something weird happens in the GL_LUMINANCE8_ALPHA8 case. What happens if you apply this mini-patch? This isn't a fix, but it may help illuminate what's going wrong.
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index cf85a5b..75dc107 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -464,7 +464,7 @@ gl_format radeonChooseTextureFormat(struct gl_context * ctx, case GL_LUMINANCE12_ALPHA12: case GL_LUMINANCE16_ALPHA16: case GL_COMPRESSED_LUMINANCE_ALPHA: - return _dri_texformat_al88; + return radeonChoose8888TexFormat(rmesa, format, type, fbo);
case GL_INTENSITY: case GL_INTENSITY4:
dri-devel@lists.freedesktop.org