#
#asahi-gpu · 2022-12-21 19:02
marcanjannau: ok, so for w18p the extra plane is alpha, and the interesting thing is that we can't see it in the boot FB because there is some kind of optimization where if the plane covers the whole screen alpha is disabled
#asahi-gpu · 2022-12-21 18:53
alyssabah, screw this, let's just play supertuxkart :-p
#asahi-gpu · 2022-12-21 18:04
jannauhuh, I completely missed splc_{get,set}_brightness
#asahi-gpu · 2022-12-21 18:03
jannauany use for inverted or greyscale rendering? set_color_remap_mode does that
#asahi-gpu · 2022-12-21 17:36
jannauI suspect it's the gamma SDR EOTF which makes it work
#asahi-gpu · 2022-12-21 17:34
jannaumarcan: I guess you could try to set an identity matrix and see if that breaks it
#asahi-gpu · 2022-12-21 17:33
marcanohh. but.
#asahi-gpu · 2022-12-21 17:33
alyssanot that we can do much about that, but
#asahi-gpu · 2022-12-21 17:33
alyssapass type has a huge impact on perf
#asahi-gpu · 2022-12-21 17:32
marcanjannau: so I tried the iboot interface from python and it works fine, the image looks normal (with w30r) after doing a swap
#asahi-gpu · 2022-12-21 17:32
alyssanote to self: optimizing scissor_enable may improve perf slightly
#asahi-gpu · 2022-12-21 17:23
jannaubut who knows
#asahi-gpu · 2022-12-21 17:23
jannauthat's unlikely
#asahi-gpu · 2022-12-21 17:23
jannauI would think
#asahi-gpu · 2022-12-21 17:18
marcanjannau: do you think it's possible iBoot issues a set_matrix? (that is a thing in the iboot interface too)
#asahi-gpu · 2022-12-21 17:05
jannauthe only issue is that the single color mode on the mbp 14 is bogus since that seems to be only populated from edid
#asahi-gpu · 2022-12-21 17:03
jannaualso it is converted correctly on external displays as long as the color mode uses gamma-SDR as EOTF
#asahi-gpu · 2022-12-21 16:55
alyssamood
#asahi-gpu · 2022-12-21 16:54
marcannope... I think I have it copied exactly at this point
#asahi-gpu · 2022-12-21 16:35
jannauany other interesting things set in the surface descriptor?
#asahi-gpu · 2022-12-21 16:21
marcannope, not that :(
#asahi-gpu · 2022-12-21 16:19
marcanconfused himself
#asahi-gpu · 2022-12-21 16:18
marcanwait no sec
#asahi-gpu · 2022-12-21 16:16
marcanlet me clean this up.
#asahi-gpu · 2022-12-21 16:16
marcanaand fixed it.
#asahi-gpu · 2022-12-21 16:16
jannauno w18p but I guess the 'w' would indicate wide gamut as well
#asahi-gpu · 2022-12-21 16:15
jannauno. I was mixing it up with "b3a8" which is still wide range. pixel format descriptions dumped from macos: https://www.jannau.net/asahi/pixelformats_fmt.txt
#asahi-gpu · 2022-12-21 16:10
marcanI see 0xdf values
#asahi-gpu · 2022-12-21 16:10
marcanif so the apple isn't quite opaque, which is interesting
#asahi-gpu · 2022-12-21 16:07
jannauI think the second plane is 8-bit alpha
#asahi-gpu · 2022-12-21 16:06
marcanlet me see if I find any other unknowns around here...
#asahi-gpu · 2022-12-21 16:06
marcanso that's not it.
#asahi-gpu · 2022-12-21 16:05
marcanhowever... using that and faking the second plane, KDE is still crunched.
#asahi-gpu · 2022-12-21 16:05
marcan2 planes, no idea what the second one is? it's 8bpp and has the bootup apple (and has had always had it with simpledrmfb and I don't see any apple-shaped artifacts so...)
#asahi-gpu · 2022-12-21 16:04
marcanjannau: interesting. so it's not w30r, it's w18p. I dumped the surface descriptor from DCP memory.
#asahi-gpu · 2022-12-21 15:25
marcanI have an idea
#asahi-gpu · 2022-12-21 15:20
jannaudcp starts with w30r with an identity matrix but macos probably uses wide gamut not that it matters much for the boot process
#asahi-gpu · 2022-12-21 15:16
linaYeah... maybe that endpoint automatically sets that conversion factor?
#asahi-gpu · 2022-12-21 15:15
jannauwhich is strange since it is supported in the iboot ep
#asahi-gpu · 2022-12-21 15:15
linaMaybe you need to use the matrix stuff to correct it then?
#asahi-gpu · 2022-12-21 15:13
jannaulina: yes, I already noticed. dcp says the two other linear uncompressed 30-bit pixel formats are not supported
#asahi-gpu · 2022-12-21 15:10
linaIt looks like that pixel format itself is inherently wide gamut, so what you need is another pixel format
#asahi-gpu · 2022-12-21 15:10
linakCVPixelFormatType_30RGBLEPackedWideGamut = 'w30r', /* little-endian RGB101010, 2 MSB are zero, wide-gamut (384-895) */
#asahi-gpu · 2022-12-21 15:09
linaYou were wondering why 10-bit mode broke on the macbooks, right?
#asahi-gpu · 2022-12-21 15:09
linajannau: I just found something interesting
#asahi-gpu · 2022-12-21 12:46
jannauyes, that's ok and matches the package version
#asahi-gpu · 2022-12-21 12:45
marcan(don't have a better scheme)
#asahi-gpu · 2022-12-21 12:44
marcanhm, guess I could push dated tags yeah
#asahi-gpu · 2022-12-21 12:44
jannaumarcan: can you tag mesa commits which are used in mesa-asahi-edge? old commits are garbage collected quickly after rebases
#asahi-gpu · 2022-12-21 09:35
mkurzlina: Thanks! ;)

plus ›