diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-09-28 11:47:05 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-09-29 08:13:49 -0700 |
commit | 22643ce4014a0b2dc52ce7916b2f657e2a7757c3 (patch) | |
tree | 18766ccd6af6d4b3d095419d375b01066aec0584 /lib/ioctl_wrappers.c | |
parent | 6ac2da7fd6b13f04f9aa0ec10f86b831d2756946 (diff) |
Return allocated size in gem_create_in_memory_regions() and friends
Often the allocated size is of interest and is different from the
requested size. Therefore return allocated size for the object (by
__gem_create_ext()) in gem_create_in_memory_regions() and friends.
v2: Assign buf->size correctly in __intel_buf_init (Zbigniew)
Cc: Andrzej Turko <andrzej.turko@linux.intel.com>
Cc: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>
Cc: John Harrison <John.C.Harrison@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r-- | lib/ioctl_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 09eb3ce7..4d628e50 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -635,7 +635,7 @@ uint32_t gem_buffer_create_fb_obj(int fd, uint64_t size) uint32_t handle; if (gem_has_lmem(fd)) - handle = gem_create_in_memory_regions(fd, size, REGION_LMEM(0)); + handle = gem_create_in_memory_regions(fd, &size, REGION_LMEM(0)); else handle = gem_create(fd, size); |