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;