From: Mike Blumenkrantz Date: Wed, 1 Jun 2022 15:31:49 +0000 (-0400) Subject: kopper: use get_drawable_info path for non-x11 drawables X-Git-Tag: upstream/22.3.5~7978 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6a80142178ddba9d5b970b53e1f621b95235755;p=platform%2Fupstream%2Fmesa.git kopper: use get_drawable_info path for non-x11 drawables wayland surfaces need to take this path to get resizing right cc: mesa-stable Reviewed-by: Adam Jackson Part-of: --- diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index d2df5aa..9e7547b 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -680,7 +680,8 @@ kopper_update_drawable_info(struct dri_drawable *drawable) drawable->textures[ST_ATTACHMENT_BACK_LEFT] : drawable->textures[ST_ATTACHMENT_FRONT_LEFT]; - if (is_window && ptex && kscreen->base.fd == -1) + bool do_kopper_update = is_window && ptex && kscreen->base.fd == -1; + if (cdraw->info.bos.sType == VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR && do_kopper_update) zink_kopper_update(screen, ptex, &dPriv->w, &dPriv->h); else get_drawable_info(dPriv, &x, &y, &dPriv->w, &dPriv->h);