Mesa (main): dri2: set dimensions on dmabuf import planes

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 17 19:47:46 UTC 2021


Module: Mesa
Branch: main
Commit: b1675608c3ab235a53ad73fb50e18d7dc8b591f7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1675608c3ab235a53ad73fb50e18d7dc8b591f7

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Nov 11 15:10:45 2021 -0500

dri2: set dimensions on dmabuf import planes

this is unusable for some drivers without the plane size attached

Reviewed-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13799>

---

 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;



More information about the mesa-commit mailing list