Blame SOURCES/0006-cogl-Rename-feature-OFFSCREEN_BLIT-to-BLIT_FRAMEBUFF.patch

657d8e
From 579c85d17b17fc7ad3d6c88af39932ce8faeaabe Mon Sep 17 00:00:00 2001
657d8e
From: Pekka Paalanen <pekka.paalanen@collabora.com>
657d8e
Date: Mon, 6 May 2019 15:58:33 +0300
657d8e
Subject: [PATCH 06/12] cogl: Rename feature OFFSCREEN_BLIT to BLIT_FRAMEBUFFER
657d8e
657d8e
The feature is not limited to offscreen framebuffer blits anymore since
657d8e
"cogl: Allow glBlitFramebuffer between onscreen/offscreen".
657d8e
657d8e
https://gitlab.gnome.org/GNOME/mutter/merge_requests/615
657d8e
657d8e
(cherry picked from commit 55c084e6e1059d8f94c699b01c408523ed504196)
657d8e
---
657d8e
 cogl/cogl/cogl-blit.c                       | 2 +-
657d8e
 cogl/cogl/cogl-framebuffer-private.h        | 2 +-
657d8e
 cogl/cogl/cogl-framebuffer.c                | 2 +-
657d8e
 cogl/cogl/cogl-private.h                    | 2 +-
657d8e
 cogl/cogl/driver/gl/cogl-framebuffer-gl.c   | 2 +-
657d8e
 cogl/cogl/driver/gl/gl/cogl-driver-gl.c     | 2 +-
657d8e
 cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 2 +-
657d8e
 7 files changed, 7 insertions(+), 7 deletions(-)
657d8e
657d8e
diff --git a/cogl/cogl/cogl-blit.c b/cogl/cogl/cogl-blit.c
657d8e
index a61eb66d2..c561b2e45 100644
657d8e
--- a/cogl/cogl/cogl-blit.c
657d8e
+++ b/cogl/cogl/cogl-blit.c
657d8e
@@ -158,7 +158,7 @@ _cogl_blit_framebuffer_begin (CoglBlitData *data)
657d8e
      supported. */
657d8e
   if ((_cogl_texture_get_format (data->src_tex) & COGL_PREMULT_BIT) !=
657d8e
       (_cogl_texture_get_format (data->dst_tex) & COGL_PREMULT_BIT) ||
657d8e
-      !_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT))
657d8e
+      !_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER))
657d8e
     return FALSE;
657d8e
 
657d8e
   dst_offscreen = _cogl_offscreen_new_with_texture_full
657d8e
diff --git a/cogl/cogl/cogl-framebuffer-private.h b/cogl/cogl/cogl-framebuffer-private.h
657d8e
index f68153d8b..cb1f87354 100644
657d8e
--- a/cogl/cogl/cogl-framebuffer-private.h
657d8e
+++ b/cogl/cogl/cogl-framebuffer-private.h
657d8e
@@ -380,7 +380,7 @@ _cogl_push_framebuffers (CoglFramebuffer *draw_buffer,
657d8e
  *
657d8e
  * This blits a region of the color buffer of the source buffer
657d8e
  * to the destination buffer. This function should only be
657d8e
- * called if the COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT feature is
657d8e
+ * called if the COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER feature is
657d8e
  * advertised.
657d8e
  *
657d8e
  * The source and destination rectangles are defined in offscreen
657d8e
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c
657d8e
index 90976a611..5cc4eada4 100644
657d8e
--- a/cogl/cogl/cogl-framebuffer.c
657d8e
+++ b/cogl/cogl/cogl-framebuffer.c
657d8e
@@ -1464,7 +1464,7 @@ _cogl_blit_framebuffer (CoglFramebuffer *src,
657d8e
   int dst_x1, dst_y1, dst_x2, dst_y2;
657d8e
 
657d8e
   _COGL_RETURN_IF_FAIL (_cogl_has_private_feature
657d8e
-                        (ctx, COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT));
657d8e
+                        (ctx, COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER));
657d8e
 
657d8e
   /* The buffers must use the same premult convention */
657d8e
   _COGL_RETURN_IF_FAIL ((src->internal_format & COGL_PREMULT_BIT) ==
657d8e
diff --git a/cogl/cogl/cogl-private.h b/cogl/cogl/cogl-private.h
657d8e
index 9f918b851..d9fbe68c7 100644
657d8e
--- a/cogl/cogl/cogl-private.h
657d8e
+++ b/cogl/cogl/cogl-private.h
657d8e
@@ -42,7 +42,7 @@ typedef enum
657d8e
 {
657d8e
   COGL_PRIVATE_FEATURE_TEXTURE_2D_FROM_EGL_IMAGE,
657d8e
   COGL_PRIVATE_FEATURE_MESA_PACK_INVERT,
657d8e
-  COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT,
657d8e
+  COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER,
657d8e
   COGL_PRIVATE_FEATURE_FOUR_CLIP_PLANES,
657d8e
   COGL_PRIVATE_FEATURE_PBOS,
657d8e
   COGL_PRIVATE_FEATURE_VBOS,
657d8e
diff --git a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
657d8e
index 83e1d263a..90d08954d 100644
657d8e
--- a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
657d8e
+++ b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
657d8e
@@ -402,7 +402,7 @@ _cogl_framebuffer_gl_flush_state (CoglFramebuffer *draw_buffer,
657d8e
           /* NB: Currently we only take advantage of binding separate
657d8e
            * read/write buffers for framebuffer blit purposes. */
657d8e
           _COGL_RETURN_IF_FAIL (_cogl_has_private_feature
657d8e
-                                (ctx, COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT));
657d8e
+                                (ctx, COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER));
657d8e
 
657d8e
           _cogl_framebuffer_gl_bind (draw_buffer, GL_DRAW_FRAMEBUFFER);
657d8e
           _cogl_framebuffer_gl_bind (read_buffer, GL_READ_FRAMEBUFFER);
657d8e
diff --git a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
657d8e
index 4d46844d5..e06e27961 100644
657d8e
--- a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
657d8e
+++ b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
657d8e
@@ -467,7 +467,7 @@ _cogl_driver_update_features (CoglContext *ctx,
657d8e
 
657d8e
   if (ctx->glBlitFramebuffer)
657d8e
     COGL_FLAGS_SET (private_features,
657d8e
-                    COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT, TRUE);
657d8e
+                    COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER, TRUE);
657d8e
 
657d8e
   if (ctx->glRenderbufferStorageMultisampleIMG)
657d8e
     {
657d8e
diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
657d8e
index 23158d5c7..bcb0bdf07 100644
657d8e
--- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
657d8e
+++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
657d8e
@@ -326,7 +326,7 @@ _cogl_driver_update_features (CoglContext *context,
657d8e
 
657d8e
   if (context->glBlitFramebuffer)
657d8e
     COGL_FLAGS_SET (private_features,
657d8e
-                    COGL_PRIVATE_FEATURE_OFFSCREEN_BLIT, TRUE);
657d8e
+                    COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER, TRUE);
657d8e
 
657d8e
   if (_cogl_check_extension ("GL_OES_element_index_uint", gl_extensions))
657d8e
     {
657d8e
-- 
657d8e
2.21.0
657d8e