From 3937c47c482c742938dca70aff06d87550d6bfd6 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 7 Mar 2022 15:53:59 -0800 Subject: [PATCH] gallium/dri: Add missing in_fence_fd initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6108 Signed-off-by: Rob Clark Reviewed-by: Tapani Pälli Tested-by: Michel Dänzer Part-of: --- src/gallium/frontends/dri/dri_helpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/dri/dri_helpers.c b/src/gallium/frontends/dri/dri_helpers.c index dccb2a8dac3..b158808c792 100644 --- a/src/gallium/frontends/dri/dri_helpers.c +++ b/src/gallium/frontends/dri/dri_helpers.c @@ -314,6 +314,7 @@ dri2_create_image_from_renderbuffer2(__DRIcontext *context, img->dri_format = driGLFormatToImageFormat(rb->Format); img->loader_private = loaderPrivate; img->sPriv = context->driScreenPriv; + img->in_fence_fd = -1; pipe_resource_reference(&img->texture, tex); @@ -413,6 +414,7 @@ dri2_create_from_texture(__DRIcontext *context, int target, unsigned texture, img->level = level; img->layer = depth; + img->in_fence_fd = -1; img->dri_format = driGLFormatToImageFormat(obj->Image[face][level]->TexFormat); img->loader_private = loaderPrivate;