https://bugs.freedesktop.org/show_bug.cgi?id=105262
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 attachment 137622 --> https://bugs.freedesktop.org/attachment.cgi?id=137622&action=edit 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 TTF in their work areas, but not in gtk interface.
Mesa 17.3.5 is unaffected.
Attached screenshot illustrates the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #1 from Pavel Vinogradov public@sourcemage.org --- Created attachment 137623 --> https://bugs.freedesktop.org/attachment.cgi?id=137623&action=edit Xorg.log
Xorg.log with today's build of mesa from git.
https://bugs.freedesktop.org/show_bug.cgi?id=105262
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #137623|text/x-log |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #2 from LoneVVolf lonewolf@xs4all.nl --- This looks very similar to my issue, see https://bbs.archlinux.org/viewtopic.php?id=234852
The libreoffice screenshots shown at https://ask.libreoffice.org/en/question/90910/writer-displays-no-text/ 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=2f0db33527fc5415858e60d76d... from 2018-01-31 works
https://cgit.freedesktop.org/mesa/mesa/commit/?id=3f7a7bd897ce4d7da50d4f25b1... 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 same issue ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #3 from Pavel Vinogradov public@sourcemage.org --- Created attachment 137675 --> https://bugs.freedesktop.org/attachment.cgi?id=137675&action=edit LO Writer example
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #4 from Pavel Vinogradov public@sourcemage.org --- I got a bit different picture here. Added attachment above. Menus and tooltips aren't rendered. The text is fine.
(In reply to LoneVVolf from comment #2)
This looks very similar to my issue, see https://bbs.archlinux.org/viewtopic.php?id=234852
The libreoffice screenshots shown at https://ask.libreoffice.org/en/question/90910/writer-displays-no-text/ 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=2f0db33527fc5415858e60d76d5b82c5492151fa from 2018-01-31 works
https://cgit.freedesktop.org/mesa/mesa/commit/ ?id=3f7a7bd897ce4d7da50d4f25b1549001abef05cc 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 same issue ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
LoneVVolf lonewolf@xs4all.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64)
--- Comment #5 from LoneVVolf lonewolf@xs4all.nl --- 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.
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 : openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird gtk-filechooser
No issues at all in qt programs like lxqt, kwin, gwenview , okular, calligra .
Could you verify whether qt programs have issues ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #6 from LoneVVolf lonewolf@xs4all.nl --- It appears most recent commits wrt r600 were written by Dave Airlie. Added him to CC list
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #7 from LoneVVolf lonewolf@xs4all.nl --- I started bisecting this. Had to move head several times due to 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 integer workaround. (v2) git bisect bad 3f7a7bd897ce4d7da50d4f25b1549001abef05cc # good: [4081e088962315b5c3f4e7030868faf01e7c4a69] winsys/amdgpu: allow non page-aligned size bo creation from pointer git bisect good 4081e088962315b5c3f4e7030868faf01e7c4a69 $
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #8 from Pavel Vinogradov public@sourcemage.org --- 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.
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 : openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird gtk-filechooser
No issues at all in qt programs like lxqt, kwin, gwenview , okular, calligra .
Could you verify whether qt programs have issues ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
LoneVVolf lonewolf@xs4all.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|ttf fonts are invisible |[R600] [BISECTED] ttf fonts | |are invisible in many | |programs
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #9 from LoneVVolf lonewolf@xs4all.nl --- # 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, gvim, 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
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #10 from LoneVVolf lonewolf@xs4all.nl --- The first bad commit was submitted by Dave Airlie and reviewed by Roland Scheidegger
Added Roland Scheidegger to CC List.
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #11 from Roland Scheidegger sroland@vmware.com --- Created attachment 137762 --> https://bugs.freedesktop.org/attachment.cgi?id=137762&action=edit 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).
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #12 from LoneVVolf lonewolf@xs4all.nl --- Patch applied to trunk rev 411aa8c322f6703b20d32c7c263fd7ea8639cf3f cleanly and appears to solve all problems.
Pavel, can you or other sourcemage users with r600 cards also test ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
--- Comment #13 from Pavel Vinogradov public@sourcemage.org --- Confirmed, the patch works. Thank you all for quick solution.
(In reply to LoneVVolf from comment #12)
Patch applied to trunk rev 411aa8c322f6703b20d32c7c263fd7ea8639cf3f cleanly and appears to solve all problems.
Pavel, can you or other sourcemage users with r600 cards also test ?
https://bugs.freedesktop.org/show_bug.cgi?id=105262
Roland Scheidegger sroland@vmware.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #14 from Roland Scheidegger sroland@vmware.com --- Fixed by 434523cf2a6738b0250de2a0e36e93b13f88832a. Thanks for bisecting!
dri-devel@lists.freedesktop.org