mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
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:
parent
943f6a038d
commit
b1675608c3
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue