#
#asahi-gpu · 2021-01-14 14:34
bloomdavidrysk[m]: yeah, just not currently printing, will do so to confirm when I next do work on asahi stuff
#asahi-gpu · 2021-01-14 14:14
davidrysk[m]bloom: can you intercept the result values with wrap?
#asahi-gpu · 2021-01-14 14:14
davidrysk[m]hthh_: you're saying that's intentional of Apple's API?
#asahi-gpu · 2021-01-14 14:04
bloomdino
#asahi-gpu · 2021-01-14 13:55
bloomThanks for looking into that.
#asahi-gpu · 2021-01-14 13:46
bloomhthh_: ---That is incredibly random. Ok.
#asahi-gpu · 2021-01-14 04:40
hthh_heh, i know the feeling (also, if it helps, AGX_SELECTOR_SET_API returns 1 (KERN_INVALID_ADDRESS) for success and 0 (KERN_SUCCESS) for failure)
#asahi-gpu · 2021-01-14 04:34
bloom(My local copy of wrap.c is hacked up with huge piles of if 0's for different experiments)
#asahi-gpu · 2021-01-14 04:33
bloomhthh_: Oops, yeah, upload might've been too hasty
#asahi-gpu · 2021-01-14 02:44
hthh_i noticed wrap.c doesn't build as-is (on lines 145/147 "is_cmdbuf" and "cpu" aren't member names) - i'm guessing it's "type" and "map" respectively?
#asahi-gpu · 2021-01-14 02:35
Shizwell, people are never really alone :)
#asahi-gpu · 2021-01-14 02:34
Shiz:D
#asahi-gpu · 2021-01-14 02:34
bloom<marcan, probably> I never agreed to this
#asahi-gpu · 2021-01-14 02:34
bloomIn reality it might be marcan and I racing against each other ;)
#asahi-gpu · 2021-01-14 02:34
bloomShiz: Ostensibly
#asahi-gpu · 2021-01-14 02:26
Shizit's a collaborative project right :P
#asahi-gpu · 2021-01-14 02:14
JTLis excited for stream
#asahi-gpu · 2021-01-14 02:07
bloomLooks like marcan will be outshining me. Guess I better work faster ;-)
#asahi-gpu · 2021-01-13 19:39
neobrainideally find_package would just try pkg-config automatically... I think somebody was even working on that, but that work hasn't landed yet :(
#asahi-gpu · 2021-01-13 19:38
neobrainthe main drawback about the PkgConfig module is that it doesn't cleanly integrate with CMake - so your dependencies now have different discovery code depending on whether you look up via pkgconfig or other means (and there's no "just try everything" solution out of the box)
#asahi-gpu · 2021-01-13 18:36
davidrysk[m]for what bloom is doing? makefiles are more than sufficient :)
#asahi-gpu · 2021-01-13 18:36
davidrysk[m]cmake et al are useful for complex projects that pull in lots of dependencies and where you need to support Windows well
#asahi-gpu · 2021-01-13 18:32
davidrysk[m]my opinion? plain ol' makefiles are best for simple stuff
#asahi-gpu · 2021-01-13 18:32
davidrysk[m]cmake can use pkg-config -- https://cmake.org/cmake/help/latest/module/FindPkgConfig.html
#asahi-gpu · 2021-01-13 17:39
Shizas for cmake, Find* scripts have always been broken on my systems a lot of the time, and i can't grok the fact that folks can't just use pkg-config
#asahi-gpu · 2021-01-13 17:37
Shizit seems to needlessly do stuff like this that breaks stuff, reinventing things that should be left to the toolchain
#asahi-gpu · 2021-01-13 17:36
Shizhttps://github.com/mesonbuild/meson/blob/a539fda0cf6342398fae802827221ed15df5de56/mesonbuild/mesonlib.py#L777
#asahi-gpu · 2021-01-13 17:36
ShizI'm not a fan of meson OR cmake personally
#asahi-gpu · 2021-01-13 16:53
davidrysk[m]cmake greatly improved abstraction in version 3
#asahi-gpu · 2021-01-13 15:37
davidrysk[m]yeah that's the thing, cmake scripting is weird
#asahi-gpu · 2021-01-13 15:33
dhewgdunno if cmake is really more flexible though, meson abstracts nicer and requires less platform specific bits
#asahi-gpu · 2021-01-13 15:31
dhewgfor someone feeling cozy with python meson is nice, cmake is bleh
#asahi-gpu · 2021-01-13 15:30
jn__davidrysk[m]: how well does cross-compiling work with each of them?
#asahi-gpu · 2021-01-13 15:24
marcanI've used cmake for some projects, but that was before meson existed
#asahi-gpu · 2021-01-13 15:23
davidrysk[m]downside of cmake is a somewhat weird domain-specific language
#asahi-gpu · 2021-01-13 15:23
davidrysk[m]both meson and modern cmake are good... a lot of the criticisms of cmake from the meson side are due to older cmake syntax/design; modern cmake fixes most of that and is generally more flexible
#asahi-gpu · 2021-01-13 14:47
marcancan't test it on a real M1 of course
#asahi-gpu · 2021-01-13 14:47
marcanI mean I'm mostly just copying and pasting bits of mini and writing some arm64 bootstrap code
#asahi-gpu · 2021-01-13 14:46
marcannot yet
#asahi-gpu · 2021-01-13 14:46
j`eymarcan: did you push m1n1 anywhere?
#asahi-gpu · 2021-01-13 14:44
marcanI should learn meson...
#asahi-gpu · 2021-01-13 14:44
marcanfwiw the m1n1 buildsystem is just a Makefile, but a pretty simple one
#asahi-gpu · 2021-01-13 13:10
davidrysk[m]Or install using Macports or homebrew
#asahi-gpu · 2021-01-13 13:10
bloom👍 thank you
#asahi-gpu · 2021-01-13 13:10
j`eyjust clone it from git
#asahi-gpu · 2021-01-13 13:10
bloomj`ey: perfect :)
#asahi-gpu · 2021-01-13 13:09
j`eybloom: meson just works on macOS
#asahi-gpu · 2021-01-13 13:09
davidrysk[m](But here — there’s no need, we’re not doing anything crazy)
#asahi-gpu · 2021-01-13 13:09
davidrysk[m](I tend to be partial to cmake over meson myself)
#asahi-gpu · 2021-01-13 13:09
bloomOh I was just going to figure out how to get meson on macOS

plus ›