#
✕ nick:integralpilot
#asahi-gpu · 2026-01-31 11:29
integralpilotthe existing applegpu testing method of running arbitary instructions on real hardware is broken, refactoring it to a new testing way i thought of that verifies our assumptions are right. hopefully it works.
#asahi-gpu · 2026-01-31 09:40
integralpilotthat's like actually kinda cool love that Apple
#asahi-gpu · 2026-01-31 09:40
integralpilotOMG there's a 10-byte long bitop instruction (just one opcode for this) that has a 4-bit truth table encoding so that ANY 2-input boolean function will run with the same opcode
#asahi-gpu · 2026-01-31 09:31
integralpilot(which i'm fixing now!)
#asahi-gpu · 2026-01-31 09:31
integralpilot*only some instructions are documented for M3 by the existing work on M3 branch, but not many, and none have an emulator impl
#asahi-gpu · 2026-01-31 09:29
integralpilotokay so instructions are documented (i.e. mov) but don't have a hardware testbed emulator yet so we can't test them (the testbed compares emulator vs real to make sure our expectations are right), so i'm going to work on expanding the emulator for M3
#asahi-gpu · 2026-01-31 09:28
integralpiloti figured it out, now the hardware testbed works!
#asahi-gpu · 2026-01-31 09:13
integralpilotokay seems to be working now but every 8th thread will only return 0s, finding out why now
#asahi-gpu · 2026-01-31 09:06
integralpilothave to fix up the hw testbed code (of applegpu) though as even in the M3 branch it doesn't seem to have been ported for M3 yet, doing that now.
#asahi-gpu · 2026-01-31 09:00
integralpilotstill decoding the other bytes
#asahi-gpu · 2026-01-31 09:00
integralpilotand byte 11 in the level of detail mode (0x00=implicit, 0x04=bias)
#asahi-gpu · 2026-01-31 08:59
integralpilotokay so now i know that byte 6 is the dimention (0x09 = 2D, 0x80=1D, 0x39=3D, 0x13=Cube)
#asahi-gpu · 2026-01-31 08:19
integralpilotokay looks like texture sampling has a new opcode, 0x8005 (was 0x31 in M1/M2), and it's 14 bytes long now (was 8-12 before)