egl: Convert configs to use shifts and sizes instead of masks