From 1bc22a2eabe9e9d7fd013f188e3e532fb797ea89 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Wed, 28 Oct 2020 19:53:43 +0100 Subject: [PATCH] renderonly: don't complain when GPU import fails There are a number of drivers which do a trial-and-error import of buffers into the KMS side via renderonly. Some of those imports are expected to fail, so we should not print a error message in this case. All callers do proper error handling themselves. Cc: mesa-stable Signed-off-by: Lucas Stach Reviewed-by: Simon Ser Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/auxiliary/renderonly/renderonly.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/renderonly/renderonly.c b/src/gallium/auxiliary/renderonly/renderonly.c index 00c8a7eeb45..56dc06bca17 100644 --- a/src/gallium/auxiliary/renderonly/renderonly.c +++ b/src/gallium/auxiliary/renderonly/renderonly.c @@ -134,10 +134,8 @@ renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc, err = drmPrimeFDToHandle(ro->kms_fd, fd, &scanout->handle); close(fd); - if (err < 0) { - fprintf(stderr, "drmPrimeFDToHandle() failed: %s\n", strerror(errno)); + if (err < 0) goto free_scanout; - } return scanout;