#
#asahi-dev · 2023-05-16 18:20
povik[ 66.683794] apple-admac 24a980000.dma-controller: clearing unknown global interrupt flag: 2
#asahi-dev · 2023-05-16 18:20
povikha!
#asahi-dev · 2023-05-16 12:34
chadmedfaking yuv420p10le support is less horifically broken than i thought it would be
#asahi-dev · 2023-05-16 09:34
marcanthat's it
#asahi-dev · 2023-05-16 09:34
marcanit's just mounted sideways, and whatever drives it needs to rotate the image
#asahi-dev · 2023-05-16 09:34
marcanfrom the point of view of the entire stack, KMS, software, compositor, hardware, MIPI, everything, it's a long vertical screen
#asahi-dev · 2023-05-16 09:33
marcanit's just literally physically sideways
#asahi-dev · 2023-05-16 09:33
marcanthe display controller sees it as a vertical screen
#asahi-dev · 2023-05-16 09:33
marcanthe screen is just rotated
#asahi-dev · 2023-05-16 09:33
marcanyes, that's the horizontal stride
#asahi-dev · 2023-05-16 09:32
ChaosPrincesshardware expects 64 in its stride register
#asahi-dev · 2023-05-16 09:32
marcanthe hardware registers are also horizontal
#asahi-dev · 2023-05-16 09:32
ChaosPrincessnot from hardware registers
#asahi-dev · 2023-05-16 09:32
marcanand hardware, yes
#asahi-dev · 2023-05-16 09:32
ChaosPrincessfrom software's pov
#asahi-dev · 2023-05-16 09:32
marcanthen the stride is horizontal :)
#asahi-dev · 2023-05-16 09:32
ChaosPrincessno
#asahi-dev · 2023-05-16 09:32
marcanyou're not still doing software rotation in the driver right?
#asahi-dev · 2023-05-16 09:32
ChaosPrincessif its about me - this is like the 2nd driver im writing and im only barely understanding what im doing :P
#asahi-dev · 2023-05-16 09:31
marcanI don't know how you're ending up so confused about the rotation still :p
#asahi-dev · 2023-05-16 09:31
marcanfrom the software point of view it's a horizontal stride
#asahi-dev · 2023-05-16 09:31
marcanstrides are always horizontal
#asahi-dev · 2023-05-16 09:30
ChaosPrincessits a 60x2008 display with scanout starting at the bottom left pixel and going up, then right
#asahi-dev · 2023-05-16 09:29
_jannau_you're confusing me. Isn't it a 60x2008 display rotated by 90 degree?
#asahi-dev · 2023-05-16 09:25
ChaosPrincessmy problem is that my stride is vertical and linux expect it to be horizontal
#asahi-dev · 2023-05-16 09:24
_jannau_ChaosPrincess: you should be able to enforce that. stride alignment of 8 or 16 pixels is not uncommon. I thought the default dumb_buffer allocation does that already. it might align stride to 16 bytes instead of pixels
#asahi-dev · 2023-05-16 09:21
chadmedthere are a bunch of MRs in kde's gitlab that reference some sort of prepatory effort to support overlay planes "properly" but the effort seems to have been deserted with little fanfare
#asahi-dev · 2023-05-16 09:18
ChaosPrincesswrt in-kernel padding - i ended up doing that in touchbar controller driver since it only supports vertical strides that are mod 64, and the display is only 60px tall, so you wouldnt be alone in that.
#asahi-dev · 2023-05-16 09:11
marcanyeah, probably worth it with a limited plane dimension to make sure compositors don't try to use it for non-cursor things?
#asahi-dev · 2023-05-16 09:07
jannaunot to speak of sw cursor bugs it would fix silently
#asahi-dev · 2023-05-16 09:07
jannaumarcan: hw cursor support with copying when the cursor is too far off-screen is probably still a performance/power improvement even if it is usgly
#asahi-dev · 2023-05-16 09:02
chadmedahh right
#asahi-dev · 2023-05-16 08:57
jannauno, the issue is that plane[0] seems to support only apple's wide RGB colorspace for 10-bit pixelformats
#asahi-dev · 2023-05-16 08:53
chadmedor did that get fixed
#asahi-dev · 2023-05-16 08:53
chadmedis one of those the iboot framebuffer that we cant get rid of for some reason?
#asahi-dev · 2023-05-16 08:52
jannauanother problem with hw cursor support is that we might need to use plane[1] for cursor. I don't remember if I tricked myself with the fake argb2101010 support of if blending plane[2] onto plane[1] didn't support transparency
#asahi-dev · 2023-05-16 08:48
chadmedformat modifier? but then everything would have to support it i suppose
#asahi-dev · 2023-05-16 08:47
jannauI don't see a way to support hw cursors if we don't have a way to communicate to userspace that we need 31 pixel padding left and right of the cursor
#asahi-dev · 2023-05-16 08:45
jannauthe old cursor api was nicer for our use case
#asahi-dev · 2023-05-16 08:44
chadmedmpv by default only uses one plane, i forced it by passing --drm-drmprime-video-plane=primary --drm-draw-plane=overlay
#asahi-dev · 2023-05-16 08:44
jannaumore or less, I wanted to try what happens if I reject a too far off-screen cursor in atomic_check but I would expect all kninds of broken desktops
#asahi-dev · 2023-05-16 08:41
marcan(without workarounds like padding the bitmap in kernel space)
#asahi-dev · 2023-05-16 08:41
jannaunot sure if mpv automatically tries to use it though. it's probably pointless with vo opengl
#asahi-dev · 2023-05-16 08:41
marcanjannau: we gave up on cursor support right? no good solution for the edge crop issue :(
#asahi-dev · 2023-05-16 08:40
marcaneven chrome and firefox *on macOS* don't know how to do this
#asahi-dev · 2023-05-16 08:40
jannauI'm unsure about the state of direct scan-out for overlay planes kwin_wayland. I think it worked at some point for yuv but I don't think itworks at the moment. it should work in weston
#asahi-dev · 2023-05-16 08:40
marcanyeah, getting this plumbed through the desktop stack is... not going to be easy
#asahi-dev · 2023-05-16 08:36
chadmedat least according to drm_info
#asahi-dev · 2023-05-16 08:36
chadmedno errors or anything, it knows theyre there and enumerates their supported formats etc properly. it just doesnt use them at all
#asahi-dev · 2023-05-16 08:35
chadmedtested both kwin_wayland and kwin_x11

plus ›