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:
parent
00dad26ce2
commit
0c4ac28957
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue