mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
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:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user