#
#asahi-re · 2023-04-23 09:52
ChaosPrincessyea, and kde does not seem to honor drm_connector_set_panel_orientation
#asahi-re · 2023-04-23 09:46
marcanyeah, as I said, I don't expect rotation to be a thing unfortunately
#asahi-re · 2023-04-23 09:42
ChaosPrincessanyway, thats just xflip/yflip. Bit 0 also does something, but it does not look like rotation
#asahi-re · 2023-04-23 09:40
marcansince it has to read backwards
#asahi-re · 2023-04-23 09:40
marcanprobably the width/height needed for initialization of xflip/yflip :p
#asahi-re · 2023-04-23 09:34
ChaosPrincessi had it commented out in my code
#asahi-re · 2023-04-23 09:33
ChaosPrincessanyway, turns out 407c does something
#asahi-re · 2023-04-23 09:33
ChaosPrincesseh, i run it by copy and pasting it into a shell :P
#asahi-re · 2023-04-23 09:31
marcanI also recommend `from m1n1.shell import run_shell` and `run_shell(globals(), msg="Have fun!")` at the end
#asahi-re · 2023-04-23 09:30
marcanhttps://mrcn.st/p/FAb0vjLc
#asahi-re · 2023-04-23 09:30
ChaosPrincessim running p.write and flush after running the rainbow.py code and get the thing in the picture
#asahi-re · 2023-04-23 09:29
ChaosPrincessyes, this is a t8103
#asahi-re · 2023-04-23 09:29
marcannote: this is on t8103
#asahi-re · 2023-04-23 09:29
marcanChaosPrincess: with just that one line changed I get a flipped rainbow
#asahi-re · 2023-04-23 09:25
ChaosPrincess print(hex(0x1000 + i * 4), hex(p.read32(0x228201000 + i * 4)))
#asahi-re · 2023-04-23 09:25
ChaosPrincess for i in range(0x1000):
#asahi-re · 2023-04-23 09:25
ChaosPrincesscan you pastebin the results of running
#asahi-re · 2023-04-23 09:20
ChaosPrincessthats whith p.write32(0x22820402c, 0x53e4003)
#asahi-re · 2023-04-23 09:20
ChaosPrincesshttps://i.imgur.com/pCYxccA.jpg
#asahi-re · 2023-04-23 09:16
marcan2 is Xflip and 4 is Yflip
#asahi-re · 2023-04-23 09:15
marcanit makes two side by side rainbows so you can actually tell when it Y flips
#asahi-re · 2023-04-23 09:14
ChaosPrincessi dont get the second memset
#asahi-re · 2023-04-23 09:12
marcanChaosPrincess: pushed a thing
#asahi-re · 2023-04-23 09:12
marcanI think your framebuffer generator is a bit broken
#asahi-re · 2023-04-23 09:08
ChaosPrincessand getting the thing in the image
#asahi-re · 2023-04-23 09:08
ChaosPrincessi am running touchbar_rainbow.py, then p.write32(0x22820402c, 0x53e4003); flush(pipe)
#asahi-re · 2023-04-23 09:06
ChaosPrincesswtf am i doing wrong then
#asahi-re · 2023-04-23 09:06
marcanyes
#asahi-re · 2023-04-23 09:05
ChaosPrincessin register 0x402c?
#asahi-re · 2023-04-23 09:05
marcanyes
#asahi-re · 2023-04-23 09:05
ChaosPrincesson DFR?
#asahi-re · 2023-04-23 09:05
marcanChaosPrincess: bit 0x2 is xflip, works for me
#asahi-re · 2023-04-23 08:55
marcankeep in mind that rotation is probably going to explode badly if the dimensions are wrong, you'll probably want to try with a square layer
#asahi-re · 2023-04-23 08:53
ChaosPrincess0x202c does nothing, 0x402c is "pixel format", and bit 0x2 results in whatever that is https://i.imgur.com/d9nQbNR.jpg
#asahi-re · 2023-04-23 08:36
marcanChaosPrincess: try plane + 0x2c bits 0x2, 0x4, 0x100000
#asahi-re · 2023-04-23 08:35
ChaosPrincessWell, was worth a shot
#asahi-re · 2023-04-23 08:32
marcanso likely all registers are different
#asahi-re · 2023-04-23 08:32
marcanChaosPrincess: I think the DFR pipe is a major redesign behind DCP, that's why they use that simpler one
#asahi-re · 2023-04-23 08:29
jannauI'm still not sure if it matters much. I expect the touchbar display driver will serve mainly a single user space programm written explictly for it
#asahi-re · 2023-04-23 08:27
jannauthere is no userspace which handles the rotated panel property correctly? I find that a little surprising. kde can render 90/270 degree rotated
#asahi-re · 2023-04-23 08:27
ChaosPrincessYea, that doesnt sound correct, mine has layer registers at 0x2000 and plane registers at 0x4000 and 0x6000
#asahi-re · 2023-04-23 08:26
marcanI think the latter are the flip bits and the former rotation, though if so I'd expect it to only work on older hardware... but then again you have older hardware than the main DISP0.
#asahi-re · 2023-04-23 08:26
marcanalso bits 0x8 and 0x10 of 0x50030 or 0x51008
#asahi-re · 2023-04-23 08:23
marcanChaosPrincess: try bit 0x100 of 0x50004 or 0x51004
#asahi-re · 2023-04-23 08:16
ChaosPrincessSorta hail mary thinking of trying to put rotation in that reg and seeing if only driver rejects it.
#asahi-re · 2023-04-23 08:16
marcanlet me see if I can find it
#asahi-re · 2023-04-23 08:16
marcanI'm not entirely sure, this code is a bit tricky to trace :/
#asahi-re · 2023-04-23 08:15
marcanthat's... a good question
#asahi-re · 2023-04-23 08:15
ChaosPrincessWhat reg do they end up in then?
#asahi-re · 2023-04-23 08:15
marcan | | | | | "IOMFBSupportsXFlip" = Yes

plus ›