https://bugs.freedesktop.org/show_bug.cgi?id=91641
Bug ID: 91641 Summary: white cursor with planetary annihilation Product: Mesa Version: 10.6 Hardware: Other OS: All Status: NEW Severity: minor Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: kdj0c@djinvi.net QA Contact: dri-devel@lists.freedesktop.org
Created attachment 117696 --> https://bugs.freedesktop.org/attachment.cgi?id=117696&action=edit screenshot in the PA menu
the cursor is a big white square in planetary annihilation. (see screenshot attached).
only the blue arrow should be seen, the white square should be transparent.
HW is radeon HD 7950 with radeonsi driver
OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD TAHITI OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.6.4 OpenGL core profile shading language version string: 3.30
thread on uber forum : https://forums.uberent.com/threads/state-of-the-cursor-fix.69376/
tried to add Option "SWCursor" "True" to xorg.conf, but doesn't have any visible effect.
https://bugs.freedesktop.org/show_bug.cgi?id=91641
Ilia Mirkin imirkin@alum.mit.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #117696|text/plain |image/jpeg mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #1 from Alex Deucher alexdeucher@gmail.com --- Does the app use the hw cursor or draw it's own?
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #2 from kdj0c@djinvi.net --- according to the last post of this thread :
https://forums.uberent.com/threads/reproduction-of-cursor-bug.50898/page-2
the post is a bit old, so I'm not sure it's still 100% accurate :
one of the dev said:"For the cursor we use the standard XCursor library with calls like XcursorImageLoadCursor. We could hide the system cursor and compose the cursor image ourselves but that has a couple of downsides, primarily that it adds more lag between when the mouse moves and when the cursor moves."
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #3 from kdj0c@djinvi.net --- by the way, there was a mod that fixed the cursor issue with mesa drivers. but it's not working with recent build.
also it's working with nvidia binary driver. So I'm still unsure if this bug is in the driver or in the game, or in a lib between them.
on a side note, I tried to record a trace with apitrace, but it doesn't record the cursor.
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #4 from kdj0c@djinvi.net --- Created attachment 117701 --> https://bugs.freedesktop.org/attachment.cgi?id=117701&action=edit cursor fixed
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #5 from kdj0c@djinvi.net --- I found a good workaround. the issue is with cursor.png. I edited the cursor.png with gimp, and paint the "transparent square" with black and then save with "save color of transparent pixel" checked and now it works !
attached the modified cursor.png
just copy it to SteamApps/common/Planetary Annihilation/media/ui/main/game/live_game/img/cursors/cursor.png and voila
so for some reason mesa/xcursor or radeonsi think transparent pixels with white color are not transparent. (red are partialy transparent, and black are completely transparent).
I attached the two cursor.png file, so it can be tested/reproduced easily.
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #6 from kdj0c@djinvi.net --- Created attachment 117702 --> https://bugs.freedesktop.org/attachment.cgi?id=117702&action=edit original cursor from PA
this png has white transparent pixels, which are not transparent with xorg.
https://bugs.freedesktop.org/show_bug.cgi?id=91641
--- Comment #7 from Michel Dänzer michel@daenzer.net --- Sounds like it may be a Planetary Annihilation bug, the cursor data it's feeding to the XCursor library may not use proper pre-multiplied alpha as expected.
https://bugs.freedesktop.org/show_bug.cgi?id=91641
kdj0c@djinvi.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #8 from kdj0c@djinvi.net --- Fixed in latest Planetary Annihilation update.
release note include :
"Fix some cursors on certain Linux drivers"
http://steamcommunity.com/games/233250/announcements/detail/1253271861285690...
https://bugs.freedesktop.org/show_bug.cgi?id=91641
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |NOTOURBUG
dri-devel@lists.freedesktop.org