Skip to contentSkip to conversation

New: r200 mesa-7.10 font distortion

Bug 34280 [email protected] 1 participant 7 messages Feb 15, 2011 – Feb 21, 2011

lore
Share & tools
lore
#0 lore raw

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: [email protected]
ReportedBy: [email protected]

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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 34280] r200 mesa-7.10 font distortion

https://bugs.freedesktop.org/show_bug.cgi?id=34280

--- Comment #1 from Nicolas Kaiser <[email protected]> 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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 34280] r200 mesa-7.10 font distortion

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34280

--- Comment #3 from Nicolas Kaiser <[email protected]> 2011-02-15 07:38:24 PST --- (In reply to comment #2)

Quoted 1 line

Can you bisect?

Sure, I bisected to 5d1387b2da3626326410804026f8b92f1a121fdc
Ian Romanick, "ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal
formats".

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 34280] r200 mesa-7.10 font distortion

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34280

--- Comment #4 from Nicolas Kaiser <[email protected]> 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.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 34280] r200 mesa-7.10 font distortion

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34280

--- Comment #5 from Nicolas Kaiser <[email protected]> 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.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 34280] r200 mesa-7.10 font distortion

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34280

Ian Romanick <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED
         AssignedTo|[email protected] |[email protected]
                   |.org                        |

--- Comment #6 from Ian Romanick <[email protected]> 2011-02-21 14:34:36 PST --- (In reply to comment #3)

Quoted 6 lines

(In reply to comment #2)

Quoted 1 line

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.

(quoted diff) +0 -0

b/src/mesa/drivers/dri/radeon/radeon_texture.c
index cf85a5b..75dc107 100644

src/mesa/drivers/dri/radeon/radeon_texture.c +0 -0
@@ -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:

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.