Mesa (master): r600g: remove some pointless and unused functions

Marek Olšák mareko at kemper.freedesktop.org
Sun Apr 24 16:22:35 PDT 2011


Module: Mesa
Branch: master
Commit: 71667533d1ccec698246b83bfd05df51a44cd298
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=71667533d1ccec698246b83bfd05df51a44cd298

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr 21 17:24:50 2011 +0200

r600g: remove some pointless and unused functions

---

 src/gallium/winsys/r600/drm/r600_bo.c         |    2 +-
 src/gallium/winsys/r600/drm/r600_hw_context.c |    4 ++--
 src/gallium/winsys/r600/drm/r600_priv.h       |   18 ------------------
 3 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/src/gallium/winsys/r600/drm/r600_bo.c b/src/gallium/winsys/r600/drm/r600_bo.c
index 122a688..e9c650d 100644
--- a/src/gallium/winsys/r600/drm/r600_bo.c
+++ b/src/gallium/winsys/r600/drm/r600_bo.c
@@ -178,7 +178,7 @@ boolean r600_bo_get_winsys_handle(struct radeon *radeon, struct r600_bo *bo,
 	whandle->stride = stride;
 	switch(whandle->type) {
 	case DRM_API_HANDLE_TYPE_KMS:
-		whandle->handle = r600_bo_get_handle(bo);
+		whandle->handle = bo->bo->handle;
 		break;
 	case DRM_API_HANDLE_TYPE_SHARED:
 		if (radeon_bo_get_name(radeon, bo->bo, &whandle->handle))
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 662455b..e28ef1f 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -798,7 +798,7 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags,
 				unsigned flush_mask, struct r600_bo *rbo)
 {
 	struct radeon_bo *bo;
-	bo = r600_bo_get_bo(rbo);
+	bo = rbo->bo;
 	/* if bo has already been flushed */
 	if (!(~bo->last_flush & flush_flags)) {
 		bo->last_flush &= flush_mask;
@@ -818,7 +818,7 @@ void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct r600_bo *r
 {
 	struct radeon_bo *bo;
 
-	bo = r600_bo_get_bo(rbo);
+	bo = rbo->bo;
 	assert(bo != NULL);
 	if (bo->reloc) {
 		*pm4 = bo->reloc_id;
diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h
index ed0f3e5..27bdf2b 100644
--- a/src/gallium/winsys/r600/drm/r600_priv.h
+++ b/src/gallium/winsys/r600/drm/r600_priv.h
@@ -202,24 +202,6 @@ static inline void radeon_bo_unmap(struct radeon *radeon, struct radeon_bo *bo)
 }
 
 /*
- * r600_bo
- */
-static inline struct radeon_bo *r600_bo_get_bo(struct r600_bo *bo)
-{
-	return bo->bo;
-}
-
-static unsigned inline r600_bo_get_handle(struct r600_bo *bo)
-{
-	return bo->bo->handle;
-}
-
-static unsigned inline r600_bo_get_size(struct r600_bo *bo)
-{
-	return bo->size;
-}
-
-/*
  * fence
  */
 static inline bool fence_is_after(unsigned fence, unsigned ofence)



More information about the mesa-commit mailing list