diff options
author | anholt <anholt@FreeBSD.org> | 2003-09-09 00:24:31 +0000 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-09-09 00:24:31 +0000 |
commit | 6b432655804f704cb7d1fa3e6317548be1cfc164 (patch) | |
tree | dcab6440d210d4a1026afdd0cbbd73f19c8c6dd3 /sys/dev/drm/drm_memory.h | |
parent | 9eac29c0b915eec97e0a9539816cae19448bd20d (diff) | |
download | FreeBSD-src-6b432655804f704cb7d1fa3e6317548be1cfc164.zip FreeBSD-src-6b432655804f704cb7d1fa3e6317548be1cfc164.tar.gz |
Merge from DRI CVS. Includes newly ported SiS 300/305/540/630/730 driver and
updates to allow system memory to be used for textures on PCI Radeons.
Sponsored by: LinuxFund
Diffstat (limited to 'sys/dev/drm/drm_memory.h')
-rw-r--r-- | sys/dev/drm/drm_memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_memory.h b/sys/dev/drm/drm_memory.h index f4e1133..a0e88ee 100644 --- a/sys/dev/drm/drm_memory.h +++ b/sys/dev/drm/drm_memory.h @@ -59,6 +59,11 @@ void *DRM(alloc)(size_t size, int area) return malloc(size, DRM(M_DRM), M_NOWAIT); } +void *DRM(calloc)(size_t nmemb, size_t size, int area) +{ + return malloc(size * nmemb, DRM(M_DRM), M_NOWAIT | M_ZERO); +} + void *DRM(realloc)(void *oldpt, size_t oldsize, size_t size, int area) { void *pt; |