From 884abe30143f8f6bceb6f3fc7febec2c07d51821 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 9 Sep 2021 09:59:16 +0000 Subject: Merge Mesa 21.1.8 --- lib/mesa/src/gallium/auxiliary/renderonly/renderonly.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/mesa/src/gallium/auxiliary/renderonly') diff --git a/lib/mesa/src/gallium/auxiliary/renderonly/renderonly.c b/lib/mesa/src/gallium/auxiliary/renderonly/renderonly.c index 00c8a7eeb..56dc06bca 100644 --- a/lib/mesa/src/gallium/auxiliary/renderonly/renderonly.c +++ b/lib/mesa/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; -- cgit v1.2.3