gbm: remove fprintf calls in gbm_dri_bo_create

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>
This commit is contained in:
Simon Ser 2021-03-17 09:09:48 +01:00 committed by Marge Bot
parent 00dad26ce2
commit 0c4ac28957
1 changed files with 0 additions and 2 deletions

View File

@ -1152,7 +1152,6 @@ gbm_dri_bo_create(struct gbm_device *gbm,
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;
}
@ -1171,7 +1170,6 @@ gbm_dri_bo_create(struct gbm_device *gbm,
}
}
if (!has_valid_modifier) {
fprintf(stderr, "Only invalid modifier specified\n");
errno = EINVAL;
goto failed;
}