Mesa (main): kopper: move drawable geometry updating up in function

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 26 22:21:07 UTC 2022


Module: Mesa
Branch: main
Commit: 476f8ad350364e56626e422c91b8cb4c624b2535
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=476f8ad350364e56626e422c91b8cb4c624b2535

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Apr 25 14:14:45 2022 -0400

kopper: move drawable geometry updating up in function

no functional changes

Reviewed-by: Adam Jackson <ajax at redhat.com>
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



More information about the mesa-commit mailing list