Mesa (main): dri: Inline dri2InvalidateDrawable into its one caller

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 10 21:56:01 UTC 2022


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

Author: Adam Jackson <ajax at redhat.com>
Date:   Thu May  5 16:52:07 2022 -0400

dri: Inline dri2InvalidateDrawable into its one caller

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16377>

---

 src/gallium/frontends/dri/dri2.c     | 2 +-
 src/gallium/frontends/dri/dri_util.c | 6 ------
 src/gallium/frontends/dri/dri_util.h | 3 ---
 3 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c
index 3cbf15927b8..fc1fe9328d5 100644
--- a/src/gallium/frontends/dri/dri2.c
+++ b/src/gallium/frontends/dri/dri2.c
@@ -80,7 +80,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv)
 {
    struct dri_drawable *drawable = dri_drawable(dPriv);
 
-   dri2InvalidateDrawable(dPriv);
+   dPriv->dri2.stamp++;
    drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp;
    drawable->texture_mask = 0;
 
diff --git a/src/gallium/frontends/dri/dri_util.c b/src/gallium/frontends/dri/dri_util.c
index 8d60526f45b..55524c43f74 100644
--- a/src/gallium/frontends/dri/dri_util.c
+++ b/src/gallium/frontends/dri/dri_util.c
@@ -860,12 +860,6 @@ const __DRI2flushControlExtension dri2FlushControlExtension = {
    .base = { __DRI2_FLUSH_CONTROL, 1 }
 };
 
-void
-dri2InvalidateDrawable(__DRIdrawable *drawable)
-{
-    drawable->dri2.stamp++;
-}
-
 /*
  * 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 6b9a71d6f16..0042901afe2 100644
--- a/src/gallium/frontends/dri/dri_util.h
+++ b/src/gallium/frontends/dri/dri_util.h
@@ -311,9 +311,6 @@ driGLFormatToSizedInternalGLFormat(mesa_format format);
 extern mesa_format
 driImageFormatToGLFormat(uint32_t image_format);
 
-extern void
-dri2InvalidateDrawable(__DRIdrawable *drawable);
-
 extern const __DRIimageDriverExtension driImageDriverExtension;
 
 #endif /* _DRI_UTIL_H_ */



More information about the mesa-commit mailing list