mesa: create validate_buffer_sub_data() helper