mesa: prepare create_textures() helper for KHR_no_error support