From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 105262] ttf fonts are invisible
Date: Mon, 26 Feb 2018 22:10:13 +0000
Message-ID:
Bug ID
105262
Summary
ttf fonts are invisible
Product
Mesa
Version
git
Hardware
Other
OS
Linux (All)
Status
NEW
Severity
normal
Priority
medium
Component
Drivers/Gallium/r600
Assignee
dri-devel@lists.freedesktop.org
Reporter
public@sourcemage.org
QA Contact
dri-devel@lists.freedesktop.org
Created attachmen=
t 137622 [details]
gvim main window as an example
Video: Radeon 4650HD PRO
Xorg: 1.19.6
Kernel: 4.15.6
Non-TTF fonts are rendered fine. Also, Firefox and LibreOffice can render T=
TF
in their work areas, but not in gtk interface.
Mesa 17.3.5 is unaffected.
Attached screenshot illustrates the bug.
Created attachment 137623 [detai=
ls]
Xorg.log
Xorg.log with today's build of mesa from git.
| What | Removed | Added |
|---|---|---|
| Attachment #137623 mime type | text/x-log | text/plain |
This looks very similar to my issue, see=20 https://bbs= .archlinux.org/viewtopic.php?id=3D234852 The libreoffice screenshots shown at https://ask.libreoffice.org/en/question/90910/writer-displays-no-te= xt/ are almost exactly what i encounter. Going back in the log of my package manager i have been able to narrow the cause down somewhat. https://cgit.freedesktop.org/mesa/mesa/commit= /?id=3D2f0db33527fc5415858e60d76d5b82c5492151fa from 2018-01-31 works https://cgit.freedesktop.org/mesa/mesa/commit= /?id=3D3f7a7bd897ce4d7da50d4f25b1549001abef05cc from 2018-02-08 fails The cause should be somewhere between these two commits. Pavel, could you check the libreoffice screenshots to verify we have the sa= me issue ?
Created attachment 137675 =
[details]
LO Writer example
I got a bit different picture here. Added attachment above. Me= nus and tooltips aren't rendered. The text is fine. (In reply to LoneVVolf from comment= #2) > This looks very similar to my issue, see=20 > https:= //bbs.archlinux.org/viewtopic.php?id=3D234852 >=20 > The libreoffice screenshots shown at > https://ask.libreoffice.org/en/question/90910/writer-displays-= no-text/ are > almost exactly what i encounter. >=20 > Going back in the log of my package manager i have been able to narrow= the > cause down somewhat. >=20 > https://cgi= t.freedesktop.org/mesa/mesa/commit/ > ?id=3D2f0db33527fc5415858e60d76d5b82c5492151fa from 2018-01-31 works >=20 > https://cgi= t.freedesktop.org/mesa/mesa/commit/ > ?id=3D3f7a7bd897ce4d7da50d4f25b1549001abef05cc from 2018-02-08 fails >=20 > The cause should be somewhere between these two commits. >=20 > Pavel, could you check the libreoffice screenshots to verify we have t= he > same issue ?
| What | Removed | Added |
|---|---|---|
| Hardware | Other | x86-64 (AMD64) |
Installed gvim to verify, and that has no menus AND shows no t= ext. It looks like both of us have the same issue, but i have an additonal one: = no text at all in affected programs. I'm running archlinux x86_64 with xf86-video-ati on an AMD HD 4870. xorg 1.19.6, kernel 4.15.5 programs without text in menus on my system :=20 openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird gtk-filechooser No issues at all in qt programs like lxqt, kwin, gwenview , okular, calligr= a . Could you verify whether qt programs have issues ?
It appears most recent commits wrt r600 were written by Dave A= irlie. Added him to CC list
I started bisecting this. Had to move head several times due t= o build failures and runtime problems, but managed to find some more good commits. $ git bisect log git bisect start # good: [aa2f609f7009199999f824970f9c13f016994364] broadcom/vc5: Ignore samplers for finding uniform offsets. git bisect good aa2f609f7009199999f824970f9c13f016994364 # bad: [3f7a7bd897ce4d7da50d4f25b1549001abef05cc] r600: implement tg4 integ= er workaround. (v2) git bisect bad 3f7a7bd897ce4d7da50d4f25b1549001abef05cc # good: [4081e088962315b5c3f4e7030868faf01e7c4a69] winsys/amdgpu: allow non page-aligned size bo creation from pointer git bisect good 4081e088962315b5c3f4e7030868faf01e7c4a69 $
Sorry, no qt stuff here, but I have rxvt-unicode with the same= problem. So, it's not gtk specific. (In reply to LoneVVolf from comment= #5) > Installed gvim to verify, and that has no menus = AND shows no text. > It looks like both of us have the same issue, but i have an additonal = one: > no text at all in affected programs. >=20 > I'm running archlinux x86_64 with xf86-video-ati on an AMD HD 4870. > xorg 1.19.6, kernel 4.15.5 >=20=20 > programs without text in menus on my system :=20 > openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird > gtk-filechooser >=20 > No issues at all in qt programs like lxqt, kwin, gwenview , okular, ca= lligra > . >=20 > Could you verify whether qt programs have issues ?
| What | Removed | Added |
|---|---|---|
| Summary | ttf fonts are invisible | [R600] [BISECTED] ttf fonts are invisible in many programs |
# first bad commit: [5b14e06d8b42e2b08ebc52b6c314ef8647d87a1f]= r600: work out shader export mask at shader build time (v1.1) mesa-git from this commit on doesn't render TTF fonts anymore in openbox, g= vim, libreoffice, rxvt-unicode and firefox / thunderbird gtk-interfaces . qt programs don't appear to be affected. Affected videocards : Radeon 4650HD Pro Radeon HD 4870 with AMD RV770 chipset
The first bad commit was submitted by Dave Airlie and reviewed= by Roland Scheidegger Added Roland Scheidegger to CC List.
Created attachment 1= 37762 [details] [review] copy over export color mask Would this patch help? I think the r600 code forgot to copy over the export mask (at least the eg = code does it).
Patch applied to trunk rev 411aa8c322f6703b20d32c7c263fd7ea863= 9cf3f cleanly and appears to solve all problems. Pavel, can you or other sourcemage users with r600 cards also test ?
Confirmed, the patch works. Thank you all for quick solution. (In reply to LoneVVolf from commen= t #12) > Patch applied to trunk rev 411aa8c322f6703b20d32= c7c263fd7ea8639cf3f cleanly > and appears to solve all problems. >=20 > Pavel, can you or other sourcemage users with r600 cards also test ?= span >
| What | Removed | Added |
|---|---|---|
| Resolution | --- | FIXED |
| Status | NEW | RESOLVED |
Fixed by 434523cf2a6738b0250de2a0e36e93b13f88832a. Thanks for bisecting!