11:29 linkmauve: How do you usually handle virtual<->physical memory addresses? I currently receive a list of commands from userland, which points to virtual memory (of course) in many different commands, and then I have to parse all commands to translate the addresses to physical addresses before sending them to the GPU.
11:30 linkmauve: But it seems a bit brittle to match the commands, I could forget some for instance, and then the GPU would read from or worse, write to random memory.
11:31 linkmauve: I’m using the UserPtr/UserSlice/UserSliceReader abstractions atm, so I should at least get an EFAULT when the process is trying to make me access memory outside of its virtual space.