#asahi-gpu · 2022-02-21 16:57
jixwasn't there before python 3.5 ... and TIL in 3.8 they added optional parameters for a group separator and bytes/group: b"foobar".hex(" ", 2) == '666f 6f62 6172'#asahi-gpu · 2022-02-21 16:52
jixthere was quite some time with no good way to do this in python 3.x, I'm not sure when they added it#asahi-gpu · 2022-02-21 16:33
jixstruct.pack("f", 1.0).hex() # also works#asahi-gpu · 2021-07-10 20:24
jix(or without web.archive.org ... it's still online, that was just the link from wikipedia)#asahi-gpu · 2021-07-10 20:22
jixthere's also the instruments GUI app that's based on dtrace, and looking at https://web.archive.org/web/20200620075030/https://developer.apple.com/documentation/metal/using_metal_system_trace_in_instruments_to_profile_your_app that seems useful, if you can add rules to also trigger on the calls the mesa driver makes#asahi-gpu · 2021-07-10 20:14
jixat least that's what I remember from when it was introduced and I was still using mac os, never did more than trying a few example dtrace scripts though... and that was ~14 years ago, so I have no idea how well it is supported today#asahi-gpu · 2021-07-10 20:12
jixme neither, but I think it should allow you to do selective system wide tracing of stuff... e.g. the IOKit calls and scheduling/preemption of threads/processes#asahi-gpu · 2021-07-10 20:04
jixI wonder if dtrace would help in figuring out when this happens#asahi-gpu · 2021-07-10 18:04
jixdoes it get worse when other processes do more GPU stuff at the same time?#asahi-gpu · 2021-07-10 17:41
jixsounds to me like they might have forgotten to update that this to say that it also includes macos on apple silicon#asahi-gpu · 2021-07-10 17:40
jix"In iOS and tvOS, the managed storage mode is not available.#asahi-gpu · 2021-07-10 17:37
jixthanks for streaming :)#asahi-gpu · 2021-07-10 17:32
jixis there any apple code talking to the GPU that would need to be synchronized with what your mesa driver is doing? if it's not some cache issue, it seems like a race condition to me, just from the random timing and how it is affected by debug printing etc..#asahi-gpu · 2021-07-10 17:22
jix(I was asking because I was wondering whether the windowserver error has anything to do with how you get stuff on screen in the end (not knowing how you do that/how that works on osx), but just everything starting to fault makes sense, especially after seeing OBS hang before)#asahi-gpu · 2021-07-10 17:17
jixis the windowserver log msg just forwarding errors from kernel, or is it having an additional error when this happens?#asahi-gpu · 2021-07-10 16:57
jixah yeah that was what I was missing, thanks :)#asahi-gpu · 2021-07-10 16:57
jix(I might be totaly confused though)#asahi-gpu · 2021-07-10 16:56
jixwouldn't this also change the thing you were testing last?#asahi-gpu · 2021-07-10 16:56
jixat least that's what I had expected#asahi-gpu · 2021-07-10 16:55
jixI'm a bit confused by having DIRTY_ANY defined to be a specific bit, or do you set it whenever you set another bit? (might have missed that)#asahi-gpu · 2021-07-10 16:10
jixmaybe that code got culled at some point ;)#asahi-gpu · 2021-07-10 16:07
jixno still fine#asahi-gpu · 2021-07-10 15:58
jixi wonder, are the handles at the end of the header and at the end of each entry, or are they actually at the start of each entry? (might be obvious with more context, but isn't to me)#asahi-gpu · 2021-07-10 15:52
jixyeah#asahi-gpu · 2021-07-10 15:51
jixyeah can hear you#asahi-gpu · 2021-07-10 15:51
jixaudio is still fine but it only shows the broken demo#asahi-gpu · 2021-07-10 15:51
jixbloom: I think the stream freezed#asahi-gpu · 2021-07-10 15:16
jixbloom: yeah your change of zeroing everything was what I was thinking of when I wrote that#asahi-gpu · 2021-07-10 15:11
jixbloom: do you need to exclude already freed entries in track_free?#asahi-gpu · 2021-07-10 14:44
jixfound it again, it was https://www.realworldtech.com/tile-based-rasterization-nvidia-gpus/#asahi-gpu · 2021-07-10 14:40
jixI've heard that even recent-ish discrete desktop GPUs use tiling (need to dig out the blog post which had some code to actually demonstrate that)#asahi-gpu · 2021-07-10 14:35
jixcan hear you :)#asahi-gpu · 2021-07-10 14:18
jixworks for me, it's afternoon here, so me not sleeping is probably a good thing ^^#asahi-gpu · 2021-07-10 13:50
jixwould probably watch if you stream... might be too distracted to actually follow what's going on today though#asahi-gpu · 2021-05-31 20:38
jixI guess it's "follow and turn notifications on" for twich? ^^#asahi-gpu · 2021-05-31 19:29
jixthat collides I guess#asahi-gpu · 2021-05-31 19:28
jixbloom: renderable is field name and macro param#asahi-gpu · 2021-05-24 12:35
jixnow whether you can reliably know and use that within a compiler? no idea#asahi-gpu · 2021-05-24 12:34
jixyrlf: I think if the loop condition is complex, the loop usually has a low iteration count and the whole loop is executed frequently, in that case not wasting icache on the duplicated condition might make things faster#asahi-gpu · 2021-05-10 20:53
jixlikely to exist)#asahi-gpu · 2021-05-10 20:53
jixyeah, that rr, some speculation that amd does affects performance counters in a way that breaks rr... so you need to turn that off https://hackmd.io/sH315lO2RuicY-SEt7ynGA?view has a write up of all that (I didn't do much apart from making educated guesses where to find the bit and trying those on my HW, others already figured out what the issue is and that some chicken bit to disable it is#asahi-gpu · 2021-05-10 19:58
jixi did poke random MSRs on my ryzen to find the chicken bit to make rr work and I didn't even manage to crash my machine doing that... was much less exciting than I thought it would be ;)#asahi-gpu · 2021-05-08 16:55
jixwhat does flake mean here?#asahi-gpu · 2021-05-02 16:55
jixand here I was wondering whether arm added a hardware memory allocator with an instruction to Branch and Link on Out Of Memory ^^#asahi-gpu · 2021-03-18 08:29
jixI'm using both matrix and irc, but for irc channels I usually connect directly, but that requires a persistent connection if you want to see all messages in channels that are not publicly logged (this one is though, see topic)... tastes in preferred clients vary widely and discussions about that usually lead to long off-topic discussions so I'd rather not go there#asahi-gpu · 2021-01-22 18:06
jixlooks perfectly fine to me#asahi-gpu · 2021-01-22 18:01
jix(that can of course also be a stylistic choice, but at least for me it usually wasn't :D)#asahi-gpu · 2021-01-22 17:59
jixin the demoscene (where I used to do gfx coding) there is the term "coder colors" for when a programmer initially picks colors (usually with too much saturation and all over the rainbow) and everyone goes "nice effect, but you really need to change the colors"#asahi-gpu · 2021-01-22 17:57
jix['#7fc97f','#beaed4','#fdc086','#ffff99','#386cb0'] is one of the palettes there#asahi-gpu · 2021-01-22 17:56
jixbut I wasted time selecting qualitative to get https://colorbrewer2.org/#type=qualitative&scheme=Accent&n=3