From b1675608c3ab235a53ad73fb50e18d7dc8b591f7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 11 Nov 2021 15:10:45 -0500 Subject: [PATCH] dri2: set dimensions on dmabuf import planes this is unusable for some drivers without the plane size attached Reviewed-by: Daniel Stone Part-of: --- src/gallium/frontends/dri/dri2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 1cad733e414..06857b66900 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -870,6 +870,8 @@ dri2_create_image_from_winsys(__DRIscreen *_screen, templ.last_level = 0; templ.depth0 = 1; templ.array_size = 1; + templ.width0 = width; + templ.height0 = height; for (i = num_handles - 1; i >= format_planes; i--) { struct pipe_resource *tex;