#asahi-gpu · 2022-10-02 12:24
alyssahttps://gitlab.freedesktop.org/asahilina/mesa/-/blob/omg-it-works/src/gallium/drivers/asahi/agx_pipe.c#L177#asahi-gpu · 2022-10-02 12:18
karolherbstand with completely I mean: you can't do anything except looking at the screen#asahi-gpu · 2022-10-02 12:17
karolherbstalyssa: well.. try to come up with _good_ reasons why rendering wrong colors makes the UI break like completely :P#asahi-gpu · 2022-10-02 12:17
alyssathat's... novel...#asahi-gpu · 2022-10-02 12:17
alyssadaniels: sorry what#asahi-gpu · 2022-10-02 12:17
karolherbstyeah.. maybe it's fixed now#asahi-gpu · 2022-10-02 12:17
danielskarolherbst: mutter used to do window picking by rendering with solid colours and reading back, but not for a while now#asahi-gpu · 2022-10-02 12:17
alyssaobviously there's no DRM modifiers on macOS so that code is all untested up until now#asahi-gpu · 2022-10-02 12:16
jannaus/at/as/#asahi-gpu · 2022-10-02 12:16
alyssawonder if modifiers are botched#asahi-gpu · 2022-10-02 12:16
alyssaoh, hhhh I wonder actually#asahi-gpu · 2022-10-02 12:16
jannauresizing weston-terminal inside weston behave strangely as well. window border not at the same place at the mouse cursor#asahi-gpu · 2022-10-02 12:16
alyssabased on the corruption I saw in the images I'm more inclined to blame a GL driver bug than a compiler one#asahi-gpu · 2022-10-02 12:16
karolherbst*words#asahi-gpu · 2022-10-02 12:16
karolherbstfamous last works#asahi-gpu · 2022-10-02 12:15
alyssalot of real control flow in the shaders but we're passing everything relevant in deqp-gles2 so I don't think that's it, the control flow handling we have now is suboptimal but "obviously" correct#asahi-gpu · 2022-10-02 12:15
karolherbstlike in the past there was screwed up colors for big endian systems and besides just everything having the wrong color, the UI didn't work at all#asahi-gpu · 2022-10-02 12:15
alyssaon Bifrost it was lack of register spilling that bit me, but AGX has twice as many registers available to a single thread, so that should be ok#asahi-gpu · 2022-10-02 12:14
jannaudaniels: good to know#asahi-gpu · 2022-10-02 12:14
karolherbstheh... I know there are some funny things going on in gnome where stuff depends on correct rendering, otherwise it just doesn't work...#asahi-gpu · 2022-10-02 12:14
alyssaI do wonder how I managed to break glamor on this driver#asahi-gpu · 2022-10-02 12:13
joske_funny but in mate terminal (when running in wayland?) everytime it gets focus, the window shrinks a bit :-D#asahi-gpu · 2022-10-02 12:12
joske_oh and thx alyssa too!!!#asahi-gpu · 2022-10-02 12:12
danielsgdm is Wayland-native#asahi-gpu · 2022-10-02 12:12
joske_oh, ok, no worries then#asahi-gpu · 2022-10-02 12:12
jannauthere is afaik no session manager which doesn't use X#asahi-gpu · 2022-10-02 12:11
alyssalightdm will be broken#asahi-gpu · 2022-10-02 12:11
joske_is there a trick to get lightdm to startup at boot?#asahi-gpu · 2022-10-02 12:10
joske_booted from u-boot#asahi-gpu · 2022-10-02 12:10
joske_running gnome-shell --wayland from the console on 16GB M1 MBA#asahi-gpu · 2022-10-02 12:09
joske_OMG it works!! Thx lina, thx jannau!!!!#asahi-gpu · 2022-10-02 11:00
Ella[m]probably#asahi-gpu · 2022-10-02 10:58
linaSounds good! It's just Z clip so if it's wrong you'll just get messed up clipping, it won't otherwise break everything. When I tested GL mesa on non-GL mode, I was getting half a cube. Vulkan on GL mode is probably just the opposite, so it'll probably display fine as long as nothing is behind the camera?#asahi-gpu · 2022-10-02 10:57
Ella[m]<lina> "https://github.com/AsahiLinux/..." <- I'll probably just flip it in the kernel when I'm testing next week. I want to try and get some basic WSI stuff working but I shouldn't need OpenGL at all for that.#asahi-gpu · 2022-10-02 10:56
linaBut the way the driver does memory management, queue allocation, waiting, and scheduling is going to be completely redesigned for the real uAPI#asahi-gpu · 2022-10-02 10:56
linaFor now, the first step is to just move into the uAPI all the registers that GL actually needs to pass the CTS (and also that GL mode bit). Most of that render command design can carry over to the real uAPI progressively.#asahi-gpu · 2022-10-02 10:54
linaThe current uAPI is just a demo, so all of that is going away entirely.#asahi-gpu · 2022-10-02 10:53
linaI had a long discussion with jekstrand and alyssa about uAPI design, so I have a good plan I think... but I really want to see it proven before we jump to upstreaming!#asahi-gpu · 2022-10-02 10:52
linaBut that's okay, it can live downstream for a while!#asahi-gpu · 2022-10-02 10:52
linaIt's also why I don't think this driver is going to be upstreamed any time soon, because rushing it makes no sense. I want to see GL 3.1 and OpenCL and at least some Vulkan running before we even attempt it.#asahi-gpu · 2022-10-02 10:51
linaYes and not really, which is why it's important to get this right the first time!#asahi-gpu · 2022-10-02 10:50
Sobek[m]Is the uapi of the GPU drivers covered by the stability guarantees in linux releases? Is introducing a new uapi version associated with a newer and better driver for the same hardware, with coordinated changes in mesa, something that happens regularly?#asahi-gpu · 2022-10-02 10:46
linaElla[m]: Thank you for working on this! Having a Vulkan implementation (even if incomplete) is going to be super useful to make sure we don't mess up the real uAPI design ^^#asahi-gpu · 2022-10-02 10:45
linaYou need to flip bit 0 to 0 for non-GL Z clip (I need to move that into the uAPI ASAP...)#asahi-gpu · 2022-10-02 10:45
linahttps://github.com/AsahiLinux/linux/blob/e92bd6fc55c71382d76d8950face426d292e79c1/drivers/gpu/drm/asahi/render.rs#L152#asahi-gpu · 2022-10-02 10:45
linaThe uAPI needs a full revamp to really support Vulkan, but I guess you should be able to test basic rendering jobs as is? Just keep in mind the Z clipping is hardcoded to OpenGL mode right now...#asahi-gpu · 2022-10-02 10:43
Ella[m]I'm going to be trying to get my vulkan driver working on it next tuesday#asahi-gpu · 2022-10-02 10:40
linaBy the way, we have at least one other user running the crazy it-works branch. I told her to just make a laundry list of what apps are broken, so we can go through it at our leisure as we get to fixing things.#asahi-gpu · 2022-10-02 10:39
linaIt being stable is no surprise though, it's a great way to clear cached state#asahi-gpu · 2022-10-02 10:39
linaYou mean as smooth as it does? Thank Apple's awesome PM ^^