- radeon: add bo naming
This commit is contained in:
parent
659c3180a2
commit
164fa2caeb
@ -3,7 +3,7 @@
|
||||
Summary: Direct Rendering Manager runtime library
|
||||
Name: libdrm
|
||||
Version: 2.4.5
|
||||
Release: 0%{?dist}
|
||||
Release: 1%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://dri.sourceforge.net
|
||||
@ -29,6 +29,7 @@ Patch8: libdrm-radeon.patch
|
||||
# 2.4.5 didn't dist nouveau_private.h and nouveau_dma.h, so add them like this
|
||||
Patch9: nouveau-missing-headers.patch
|
||||
|
||||
Patch10: radeon-bo-name.patch
|
||||
%description
|
||||
Direct Rendering Manager runtime library
|
||||
|
||||
@ -48,6 +49,7 @@ Direct Rendering Manager development package
|
||||
%patch4 -p1 -b .no-bc
|
||||
%patch8 -p1 -b .radeon
|
||||
%patch9 -p1 -b .nouveau
|
||||
%patch10 -p1 -b .boname
|
||||
|
||||
%build
|
||||
autoreconf -v --install || exit 1
|
||||
@ -107,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/pkgconfig/libdrm_nouveau.pc
|
||||
|
||||
%changelog
|
||||
* Mon Mar 23 2009 Dave Airlie <airlied@redhat.com> 2.4.5-1
|
||||
- add bo naming
|
||||
|
||||
* Tue Feb 24 2009 Kristian Høgsberg <krh@redhat.com> - 2.4.5-0
|
||||
- Update to 2.4.5, drop nouveau and intel patches, rebase radeon.
|
||||
|
||||
|
24
radeon-bo-name.patch
Normal file
24
radeon-bo-name.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff --git a/libdrm/radeon/radeon_bo_gem.c b/libdrm/radeon/radeon_bo_gem.c
|
||||
index 932afeb..6d2fc61 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 c0f68e6..980a6a4 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
|
Loading…
Reference in New Issue
Block a user