Mesa (main): dri: Remove unused driUpdateFramebufferSize

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 16 01:20:32 UTC 2021


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

Author: Adam Jackson <ajax at redhat.com>
Date:   Thu Dec  9 15:52:07 2021 -0500

dri: Remove unused driUpdateFramebufferSize

Reviewed-by: Emma Anholt <emma at anholt.net>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14199>

---

 src/gallium/frontends/dri/dri_util.c | 19 -------------------
 src/gallium/frontends/dri/dri_util.h |  3 ---
 2 files changed, 22 deletions(-)

diff --git a/src/gallium/frontends/dri/dri_util.c b/src/gallium/frontends/dri/dri_util.c
index aa945992563..b9fbed05ca9 100644
--- a/src/gallium/frontends/dri/dri_util.c
+++ b/src/gallium/frontends/dri/dri_util.c
@@ -851,25 +851,6 @@ dri2InvalidateDrawable(__DRIdrawable *drawable)
     drawable->dri2.stamp++;
 }
 
-/**
- * Check that the gl_framebuffer associated with dPriv is the right size.
- * Resize the gl_framebuffer if needed.
- * It's expected that the dPriv->driverPrivate member points to a
- * gl_framebuffer object.
- */
-void
-driUpdateFramebufferSize(struct gl_context *ctx, const __DRIdrawable *dPriv)
-{
-   struct gl_framebuffer *fb = (struct gl_framebuffer *) dPriv->driverPrivate;
-   if (fb && (dPriv->w != fb->Width || dPriv->h != fb->Height)) {
-      _mesa_resize_framebuffer(ctx, fb, dPriv->w, dPriv->h);
-      /* if the driver needs the hw lock for ResizeBuffers, the drawable
-         might have changed again by now */
-      assert(fb->Width == dPriv->w);
-      assert(fb->Height == dPriv->h);
-   }
-}
-
 /*
  * Note: the first match is returned, which is important for formats like
  * __DRI_IMAGE_FORMAT_R8 which maps to both MESA_FORMAT_{R,L}_UNORM8
diff --git a/src/gallium/frontends/dri/dri_util.h b/src/gallium/frontends/dri/dri_util.h
index d3381b10918..470dc493e37 100644
--- a/src/gallium/frontends/dri/dri_util.h
+++ b/src/gallium/frontends/dri/dri_util.h
@@ -329,9 +329,6 @@ driImageFormatToGLFormat(uint32_t image_format);
 extern void
 dri2InvalidateDrawable(__DRIdrawable *drawable);
 
-extern void
-driUpdateFramebufferSize(struct gl_context *ctx, const __DRIdrawable *dPriv);
-
 extern const __DRIimageDriverExtension driImageDriverExtension;
 
 extern const __DRInoErrorExtension dri2NoErrorExtension;



More information about the mesa-commit mailing list