These errors can be handled by the caller. The caller can't guess
whether the GBM implementation supports modifiers, for instance.
Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7601#note_778845
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8715>
if (modifiers) {
if (!dri->image || dri->image->base.version < 14 ||
!dri->image->createImageWithModifiers) {
- fprintf(stderr, "Modifiers specified, but DRI is too old\n");
errno = ENOSYS;
goto failed;
}
}
}
if (!has_valid_modifier) {
- fprintf(stderr, "Only invalid modifier specified\n");
errno = EINVAL;
goto failed;
}