s/gem_mmap/gem_mmap__gtt/

Get rid of the gem_mmap() alias of gem_mmap__gtt(). I don't see any
point in having it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Ville Syrjälä
2015-10-09 16:47:05 +03:00
parent bfea74a9f6
commit 9792e7b580
30 changed files with 54 additions and 70 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ static void destroy_cairo_surface__gtt(void *arg)
static void create_cairo_surface__gtt(int fd, struct igt_fb *fb)
{
fb->cairo_surface =
cairo_image_surface_create_for_data(gem_mmap(fd, fb->gem_handle, fb->size, PROT_READ | PROT_WRITE),
cairo_image_surface_create_for_data(gem_mmap__gtt(fd, fb->gem_handle, fb->size, PROT_READ | PROT_WRITE),
drm_format_to_cairo(fb->drm_format),
fb->width, fb->height, fb->stride);
-16
View File
@@ -76,22 +76,6 @@ void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsi
*/
#define gem_require_mmap_wc(fd) igt_require(gem_mmap__has_wc(fd))
/**
* gem_mmap:
* @fd: open i915 drm file descriptor
* @handle: gem buffer object handle
* @size: size of the gem buffer
* @prot: memory protection bits as used by mmap()
*
* This functions wraps up procedure to establish a memory mapping through the
* GTT.
*
* This is a simple convenience alias to gem_mmap__gtt()
*
* Returns: A pointer to the created memory mapping.
*/
#define gem_mmap(fd, handle, size, prot) gem_mmap__gtt(fd, handle, size, prot)
int gem_madvise(int fd, uint32_t handle, int state);
uint32_t gem_context_create(int fd);