mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
lib: Fix types for gem_mmap*
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
fb950bc17f
commit
019ae907ff
@ -458,7 +458,7 @@ void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
|
||||
*
|
||||
* Returns: A pointer to the created memory mapping.
|
||||
*/
|
||||
void *gem_mmap__gtt(int fd, uint32_t handle, int size, int prot)
|
||||
void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot)
|
||||
{
|
||||
struct drm_i915_gem_mmap_gtt mmap_arg;
|
||||
void *ptr;
|
||||
@ -537,7 +537,7 @@ bool gem_mmap__has_wc(int fd)
|
||||
*
|
||||
* Returns: A pointer to the created memory mapping.
|
||||
*/
|
||||
void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot)
|
||||
void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
||||
{
|
||||
struct local_i915_gem_mmap_v2 arg;
|
||||
|
||||
@ -571,7 +571,7 @@ void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot)
|
||||
*
|
||||
* Returns: A pointer to the created memory mapping.
|
||||
*/
|
||||
void *gem_mmap__cpu(int fd, uint32_t handle, int offset, int size, int prot)
|
||||
void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
||||
{
|
||||
struct drm_i915_gem_mmap mmap_arg;
|
||||
|
||||
|
@ -60,11 +60,11 @@ uint32_t __gem_create(int fd, int size);
|
||||
uint32_t gem_create(int fd, uint64_t size);
|
||||
void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
|
||||
|
||||
void *gem_mmap__gtt(int fd, uint32_t handle, int size, int prot);
|
||||
void *gem_mmap__cpu(int fd, uint32_t handle, int offset, int size, int prot);
|
||||
void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot);
|
||||
void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot);
|
||||
|
||||
bool gem_mmap__has_wc(int fd);
|
||||
void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot);
|
||||
void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot);
|
||||
|
||||
/**
|
||||
* gem_require_mmap_wc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user