loader_dri3: Remove buffer_type from buffer metadata
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 28 Jun 2017 06:31:56 +0000 (08:31 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Aug 2017 05:39:42 +0000 (07:39 +0200)
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@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h

index 2207b7543b96c799b13bf04fe49e34b02dcd04be..67dabe0593f633d1e912b47a5431d15dbdaf4120 100644 (file)
@@ -1289,7 +1289,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;
 
@@ -1399,7 +1398,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);
index cd9e8286792f6e4970c9e56fe339b177dfe64812..1a7d44dc1da40ee06565c6024a59b465c06036e4 100644 (file)
@@ -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;
 };