#
#asahi-dev · 2023-03-13 07:52
marcanit's not consistent
#asahi-dev · 2023-03-13 07:52
marcanit does that on random surfaces for me, including title bars sometimes
#asahi-dev · 2023-03-13 07:52
jannaucursor leaves square artifacts on the panel but nowhere else
#asahi-dev · 2023-03-13 07:50
marcannah, the pink boxes are probably the gpu driver still missing sync
#asahi-dev · 2023-03-13 07:50
jannaumaybe related to the pick boxes I see on kde login on m2, but I've never seen a crash
#asahi-dev · 2023-03-13 07:49
ChaosPrincessin case it matters - i can also confirm cursor redraw leaving garbage in a square-shaped patter around cursor on plasma. didnt report it at first cause running gentoo, not arch, but apparently its not just my distro being broken.
#asahi-dev · 2023-03-13 07:49
marcanif this is another page size thing...
#asahi-dev · 2023-03-13 07:49
marcanthis is some... heap memory manager... collecting stuff from the javascript stack?
#asahi-dev · 2023-03-13 07:49
marcanthis=0x3f sigh
#asahi-dev · 2023-03-13 07:48
marcannow cursor redraws leave garbage behind
#asahi-dev · 2023-03-13 07:48
marcanas for kwin, the non-integer scaling artifacts got a lot worse recently
#asahi-dev · 2023-03-13 07:48
marcanplasmashell just dies on half the logins
#asahi-dev · 2023-03-13 07:48
marcanjannau: this is random, it's particularly bad on my M2 Air for some reason
#asahi-dev · 2023-03-13 07:46
jannaumarcan: btw, I have see no issues with plasma/wayland on alarm with asahi-dev
#asahi-dev · 2023-03-13 07:40
jannaualso we can't support a2rgb10 cursors, which kde uses. I was under the impression that the cursor fb is supposed to be argb32
#asahi-dev · 2023-03-13 07:37
marcan:(
#asahi-dev · 2023-03-13 07:37
jannauno, that trick doesn't work at the right edg
#asahi-dev · 2023-03-13 07:11
jannaua, my code is broken, I think that should work for the right edge as well
#asahi-dev · 2023-03-13 07:10
jannaulol, I found a solution for the bottom edge. I can display the cursor offscreen as long as src and dst rect have a width of at least 32x32
#asahi-dev · 2023-03-13 07:08
jannaudottedmag: default curser fb size is 64x64 independently of the cursor size
#asahi-dev · 2023-03-13 07:04
dottedmagjannau: So this is also a problem for small cursors, not only partially off-screen ones, right?
#asahi-dev · 2023-03-13 06:58
marcanurgh okay
#asahi-dev · 2023-03-13 06:57
dottedmagugh, ugly
#asahi-dev · 2023-03-13 06:57
jannaudottedmag: the issue is that dcp expects an overlay to have at least 32x32 pixels on screen, if not it starts scaling the overlay
#asahi-dev · 2023-03-13 06:57
marcanor is this a min plane size thing when w/h drop too low?
#asahi-dev · 2023-03-13 06:56
marcanjannau: and cropping w/h at src box doesn't work for that case?
#asahi-dev · 2023-03-13 06:56
jannaumarcan: sigh, the surface limitations are biting us as well surf[2] doesn't overlay on surf[1] (with our current code), surf[1] on top of surf[0] does but uses overlays the background as well
#asahi-dev · 2023-03-13 06:54
dottedmagSomething like this (assuming that DCP has a notion of a stride): https://gist.github.com/dottedmag/4f48d81c143d56b93249926ec1d29bd7
#asahi-dev · 2023-03-13 06:51
dottedmaga stupid question: if it's RGBA (it's RGBA, right?) can we play with w/h/stride of the buffer to tell DCP that the plane is exactly the size to fit on screen (and thus effectively hide the part of buffer that'd be rendered offscreen)
#asahi-dev · 2023-03-13 06:48
jannauI don't follow. inpractice we have the issue at the bottom and right screen edge so source x/y are always 0
#asahi-dev · 2023-03-13 06:40
marcanjannau: it doesn't work using the source x/y box to offset it?
#asahi-dev · 2023-03-13 06:40
marcanah right, the partial cursor issue. argh.
#asahi-dev · 2023-03-13 06:21
jannauugly but not hard to implement
#asahi-dev · 2023-03-13 06:19
jannauwe can of course also deal with it by copying the visible part of the cursor to a shadow buffer if it is partially offscreen
#asahi-dev · 2023-03-13 06:18
jannauthat depends on unmanaged iommu domains, I don't want to rush that
#asahi-dev · 2023-03-13 06:16
jannaumarcan: we need a solution to deal with a partially off-screen cursor. I want to try if I can get away with adding 32 pixels to the stride and map it between a transparent page. that should give us 31 pixels transparency horizontally/vertically to work around dcp's limitation
#asahi-dev · 2023-03-13 05:31
marcansegfault is in Qt... sigh... gdb 12.1 works and 13.1 fails.
#asahi-dev · 2023-03-13 05:23
marcanI guess I'm bisecting gdb now...
#asahi-dev · 2023-03-13 05:19
marcanaaand the fix the bug was closed by did not fix it
#asahi-dev · 2023-03-13 05:18
marcanand gdb still crashes... wtf.
#asahi-dev · 2023-03-13 05:13
marcanthe cursor redraw glitches go away at 100/200% so this is totally yet another kwin fractional scaling bug... sigh.
#asahi-dev · 2023-03-13 05:08
marcanat this point I'm half tempted to just throw the towel on ALARM and switch to Fedora and get everything sorted out there, I know I can get this stuff fixed on short notice
#asahi-dev · 2023-03-13 05:06
marcancompiles gdb...
#asahi-dev · 2023-03-13 05:06
marcanand I need to track down this segfault mess
#asahi-dev · 2023-03-13 05:06
marcanjannau: how practical would it be to get cursor planes into dcp? that would at least alleviate the worst of the kwin issues I think
#asahi-dev · 2023-03-13 05:05
marcanI suspect half of this is bugs unrelated to us but I am not patching random KDE packages and we know we can't upstream anything to ALARM
#asahi-dev · 2023-03-13 05:04
marcanmeanwhile the kwin blur glitches are horrible but not only that, sometimes I get cursor redraw glitches even with blur disabled which tells me there is a deeper problem
#asahi-dev · 2023-03-13 05:03
marcanI can't debug it with gdb because gdb is *also* broken (known upstream bug, fixed in main)
#asahi-dev · 2023-03-13 05:03
marcanit segfaults
#asahi-dev · 2023-03-13 05:03
marcanplasmashell fails to start half the time and stays like that, even if restarted

plus ›