[PATCH libdrm 2/3] amdgpu: vamgr_32 can be a struct instead of a pointer

2017-01-28 Thread Grazvydas Ignotas
From: Alex Xie vamgr_32 is an integral part of amdgpu_device. We don't need to calloc and free it. This can save CPU time, reduce heap fragmentation. Signed-off-by: Alex Xie Reviewed-by: Christian König [Grazvydas Ignotas: rebase, correct a typo in commit message] --- amdgpu/amdgpu_device.c

[PATCH libdrm 2/3] amdgpu: vamgr_32 can be a struct instead of a pointer

2017-01-28 Thread Grazvydas Ignotas
From: Alex Xie vamgr_32 is an integral part of amdgpu_device. We don't need to calloc and free it. This can save CPU time, reduce heap fragmentation. Signed-off-by: Alex Xie Reviewed-by: Christian König [Grazvydas Ignotas: rebase, correct a typo in commit message] --- amdgpu/amdgpu_device.c