Module: Mesa Branch: staging/22.1 Commit: c7830bf87318c31a90bf8857b8d31af7944c97f9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7830bf87318c31a90bf8857b8d31af7944c97f9
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/16179> --- 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 1d7ec12718d..57a9f6dfc30 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; @@ -337,9 +340,6 @@ kopper_allocate_textures(struct dri_context *ctx, drawable->textures[statts[i]]); } } - - drawable->old_w = width; - drawable->old_h = height; } static inline void
