summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-03-23 18:25:33 +1000
committerDave Airlie <airlied@redhat.com>2009-03-23 18:32:36 +1000
commit41e736c79515d5b06fe393169298dfba4d51de5a (patch)
treede2257b0fd6e3b0f2897333e1e5e531522790b43
parent47c68ee6e4c180c18b8d58c74f12c8f90af9da3d (diff)
radeon: add name function for speeding up dri2
-rw-r--r--libdrm/radeon/radeon_bo_gem.c6
-rw-r--r--libdrm/radeon/radeon_bo_gem.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/libdrm/radeon/radeon_bo_gem.c b/libdrm/radeon/radeon_bo_gem.c
index 932afebd..6d2fc619 100644
--- a/libdrm/radeon/radeon_bo_gem.c
+++ b/libdrm/radeon/radeon_bo_gem.c
@@ -221,3 +221,9 @@ void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom)
}
free(bomg);
}
+
+uint32_t radeon_gem_name_bo(struct radeon_bo *bo)
+{
+ struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
+ return bo_gem->name;
+}
diff --git a/libdrm/radeon/radeon_bo_gem.h b/libdrm/radeon/radeon_bo_gem.h
index c0f68e6d..980a6a4e 100644
--- a/libdrm/radeon/radeon_bo_gem.h
+++ b/libdrm/radeon/radeon_bo_gem.h
@@ -37,4 +37,5 @@
struct radeon_bo_manager *radeon_bo_manager_gem_ctor(int fd);
void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom);
+uint32_t radeon_gem_name_bo(struct radeon_bo *bo);
#endif