util: drm-shim fixes
@alyssa was mentioning this, and I happened to already have a branch with it (though that version had extra stuff for sending GPU jobs over the network), so I stripped that branch down to give this merge request.
(I could clean up that other branch and create an MR for that as well if using remote GPUs would be useful for other people.)