dri2: set dimensions on dmabuf import planes

this is unusable for some drivers without the plane size attached

Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13799>
This commit is contained in:
Mike Blumenkrantz 2021-11-11 15:10:45 -05:00 committed by Marge Bot
parent 943f6a038d
commit b1675608c3

View file

@ -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;