[Mesa-dev] [PATCH 08/11] loader_dri3: Remove buffer_type from buffer metadata

Thomas Hellstrom thellstrom at vmware.com
Fri Aug 11 14:14:17 UTC 2017


It's not used anywhere and now that we're about to exchange back- and
fake fronts it doesn't serve a purpose.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
---
 src/loader/loader_dri3_helper.c | 2 --
 src/loader/loader_dri3_helper.h | 2 --
 2 files changed, 4 deletions(-)

diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
index 774256f..2787f9f 100644
--- a/src/loader/loader_dri3_helper.c
+++ b/src/loader/loader_dri3_helper.c
@@ -1279,7 +1279,6 @@ dri3_get_pixmap_buffer(__DRIdrawable *driDrawable, unsigned int format,
    buffer->own_pixmap = false;
    buffer->width = bp_reply->width;
    buffer->height = bp_reply->height;
-   buffer->buffer_type = buffer_type;
    buffer->shm_fence = shm_fence;
    buffer->sync_fence = sync_fence;
 
@@ -1389,7 +1388,6 @@ dri3_get_buffer(__DRIdrawable *driDrawable,
          break;
       }
       buffer = new_buffer;
-      buffer->buffer_type = buffer_type;
       draw->buffers[buf_id] = buffer;
    }
    dri3_fence_await(draw->conn, buffer);
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h
index f7db45d..c8f63fd 100644
--- a/src/loader/loader_dri3_helper.h
+++ b/src/loader/loader_dri3_helper.h
@@ -67,8 +67,6 @@ struct loader_dri3_buffer {
    uint32_t     flags;
    uint32_t     width, height;
    uint64_t     last_swap;
-
-   enum loader_dri3_buffer_type        buffer_type;
 };
 
 
-- 
2.7.4



More information about the mesa-dev mailing list