dri: Remove unused driUpdateFramebufferSize
authorAdam Jackson <ajax@redhat.com>
Thu, 9 Dec 2021 20:52:07 +0000 (15:52 -0500)
committerAdam Jackson <ajax@redhat.com>
Thu, 16 Dec 2021 00:43:41 +0000 (19:43 -0500)
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14199>

src/gallium/frontends/dri/dri_util.c
src/gallium/frontends/dri/dri_util.h

index aa94599..b9fbed0 100644 (file)
@@ -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
index d3381b1..470dc49 100644 (file)
@@ -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;