From 476f8ad350364e56626e422c91b8cb4c624b2535 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 25 Apr 2022 14:14:45 -0400 Subject: [PATCH] kopper: move drawable geometry updating up in function no functional changes Reviewed-by: Adam Jackson Part-of: --- src/gallium/frontends/dri/kopper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index 170c949b851..1f20e879cbe 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -277,6 +277,9 @@ kopper_allocate_textures(struct dri_context *ctx, } } + drawable->old_w = width; + drawable->old_h = height; + memset(&templ, 0, sizeof(templ)); templ.target = screen->target; templ.width0 = width; @@ -338,9 +341,6 @@ kopper_allocate_textures(struct dri_context *ctx, drawable->textures[statts[i]]); } } - - drawable->old_w = width; - drawable->old_h = height; } static inline void