[cairo] [PATCH 60/71] drm: radeon: dropped unused fields in bo struct

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Mon Apr 17 16:57:39 UTC 2017


Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
 src/drm/cairo-drm-radeon-private.h | 3 ---
 src/drm/cairo-drm-radeon.c         | 8 --------
 2 files changed, 11 deletions(-)

diff --git a/src/drm/cairo-drm-radeon-private.h b/src/drm/cairo-drm-radeon-private.h
index 1987c1347..0c9240b3b 100644
--- a/src/drm/cairo-drm-radeon-private.h
+++ b/src/drm/cairo-drm-radeon-private.h
@@ -38,9 +38,6 @@
 typedef struct _radeon_bo {
     cairo_drm_bo_t base;
 
-    cairo_bool_t in_batch;
-    uint32_t read_domains;
-    uint32_t write_domain;
 } radeon_bo_t;
 
 typedef struct _radeon_device {
diff --git a/src/drm/cairo-drm-radeon.c b/src/drm/cairo-drm-radeon.c
index c8905cee4..1bc67df3a 100644
--- a/src/drm/cairo-drm-radeon.c
+++ b/src/drm/cairo-drm-radeon.c
@@ -209,10 +209,6 @@ radeon_bo_create (radeon_device_t *device,
     bo->base.handle = create.handle;
     bo->base.size = size;
 
-    bo->in_batch = FALSE;
-    bo->read_domains = 0;
-    bo->write_domain = 0;
-
     CAIRO_REFERENCE_COUNT_INIT (&bo->base.ref_count, 1);
     return &bo->base;
 }
@@ -234,10 +230,6 @@ radeon_bo_create_for_name (radeon_device_t *device,
 	return NULL;
     }
 
-    bo->in_batch = FALSE;
-    bo->read_domains = 0;
-    bo->write_domain = 0;
-
     CAIRO_REFERENCE_COUNT_INIT (&bo->base.ref_count, 1);
     return &bo->base;
 }
-- 
2.11.0.rc0.7.gbe5a750



More information about the cairo mailing list