Module: Mesa Branch: main Commit: 476f8ad350364e56626e422c91b8cb4c624b2535 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=476f8ad350364e56626e422c91b8cb4c624b2535
Author: Mike Blumenkrantz <[email protected]> Date: Mon Apr 25 14:14:45 2022 -0400 kopper: move drawable geometry updating up in function no functional changes Reviewed-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16152> --- 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
