[PATCH vkd3d 09/11] vkd3d-shader: Add calculate_sysval_array_mask helper.