[PATCH v2 3/5] vkd3d-shader: Check that registers are valid.