#asahi-gpu · 2022-10-03 08:01
karolherbstand also not that much work actually#asahi-gpu · 2022-10-03 08:01
karolherbstwondering if there is a way to put the firmware into a mode it ignores display related stuff#asahi-gpu · 2022-10-03 08:00
karolherbstis there a way to configure the hardware behind the firmwares back?#asahi-gpu · 2022-10-03 08:00
karolherbstimpressive split#asahi-gpu · 2022-10-03 07:59
karolherbstnot sure messing with EDIDs is a sustainable plan...#asahi-gpu · 2022-10-03 07:59
karolherbstyeah...#asahi-gpu · 2022-10-03 07:58
karolherbstthough the firmware might just use one of those#asahi-gpu · 2022-10-03 07:58
karolherbstthere is just a property telling the OS that it's a tiled one#asahi-gpu · 2022-10-03 07:57
karolherbstI think the EDID is the same on both outputs#asahi-gpu · 2022-10-03 07:56
karolherbstyeah.. that's the important question here#asahi-gpu · 2022-10-03 07:55
karolherbstbut it also doesn't sound like it will be needed... hopefully. Tiled displays working is quite an optimistic sign#asahi-gpu · 2022-10-03 07:54
karolherbstright...#asahi-gpu · 2022-10-03 07:54
karolherbst:D#asahi-gpu · 2022-10-02 22:18
karolherbstcould be worse though#asahi-gpu · 2022-10-02 22:18
karolherbststill.. they are annoying to use#asahi-gpu · 2022-10-02 22:17
karolherbstI know :)#asahi-gpu · 2022-10-02 22:17
karolherbstI think I use all of them in mesa...#asahi-gpu · 2022-10-02 22:17
karolherbstall those enum types have pro and cons#asahi-gpu · 2022-10-02 22:17
karolherbstyeah...#asahi-gpu · 2022-10-02 22:17
karolherbsti509VCB: yeah, and then 4 other enum types#asahi-gpu · 2022-10-02 22:15
karolherbstbut looking at bindgen I think rust really needs to improve handling of "int enums", to make interacting with C code less painfull#asahi-gpu · 2022-10-02 22:14
karolherbstbut not sure if serde supports that out of the box now#asahi-gpu · 2022-10-02 22:14
karolherbstahh yes#asahi-gpu · 2022-10-02 22:14
karolherbstit does seem to use serde It hink...#asahi-gpu · 2022-10-02 22:14
karolherbstor maybe it's part of serde now#asahi-gpu · 2022-10-02 22:13
karolherbstor it's the first crate to be "done"#asahi-gpu · 2022-10-02 22:11
karolherbstI think this was the one I found way earlier: https://docs.rs/int-enum/latest/int_enum/trait.IntEnum.html#asahi-gpu · 2022-10-02 22:10
karolherbstbut then I also want to just declare a type to get derived serialize/deserialize methods#asahi-gpu · 2022-10-02 22:09
karolherbstI think there are also crates making that int <-> enum conversion less painful#asahi-gpu · 2022-10-02 22:08
karolherbstheh...#asahi-gpu · 2022-10-02 22:08
karolherbstbecause when it gets changed, the code needs got get updated#asahi-gpu · 2022-10-02 22:08
karolherbsti509VCB: my point was more, that I don't want to have to write the code for it :)#asahi-gpu · 2022-10-02 22:08
karolherbstthough I am sure that the 1st place of unsafe \ loc goes to the stdlib#asahi-gpu · 2022-10-02 22:07
karolherbstalready having enough unsafe blocks :D#asahi-gpu · 2022-10-02 22:07
karolherbstmhhh#asahi-gpu · 2022-10-02 22:07
karolherbstbut yeah.. maybe repr(C) would help#asahi-gpu · 2022-10-02 22:06
karolherbstbecause the fallback is to just compile the source regardless#asahi-gpu · 2022-10-02 22:06
karolherbstwell.. returning an Error doesn't help with anything though#asahi-gpu · 2022-10-02 21:58
karolherbstmostly that enum to int mapping is annoying, though I could just unsafe it I think?#asahi-gpu · 2022-10-02 21:58
karolherbstbut I also use that in some other places, like https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs#L370#asahi-gpu · 2022-10-02 21:56
karolherbstso what I really need is just an easy way to map between data types and [u8]#asahi-gpu · 2022-10-02 21:56
karolherbstif you got a new version, the cache is invalid#asahi-gpu · 2022-10-02 21:56
karolherbstyeah... though we have a little trick: shader caches are only valid for the same mesa binary#asahi-gpu · 2022-10-02 21:55
karolherbstmaybe serde is actually too big for that#asahi-gpu · 2022-10-02 21:54
karolherbstdon't even need a special format.. a plain binary dump is enough#asahi-gpu · 2022-10-02 21:54
karolherbsteven though it's doing much more than we actually need#asahi-gpu · 2022-10-02 21:54
karolherbstit's not a biggy, but that's one place where e.g. using serde would make sense#asahi-gpu · 2022-10-02 21:53
karolherbstyeah.. but I only need it for trivial enough things#asahi-gpu · 2022-10-02 21:53
karolherbsthttps://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/frontends/rusticl/core/kernel.rs#L152#asahi-gpu · 2022-10-02 21:52
karolherbstbut come on.. why do I have to hand roll serializeing enums and stuff