OSDN Git Service

amdgpu: add a function to create amdgpu bo internally (v4)
authorJunwei Zhang <Jerry.Zhang@amd.com>
Tue, 14 Aug 2018 03:00:09 +0000 (11:00 +0800)
committerChristian König <christian.koenig@amd.com>
Fri, 17 Aug 2018 10:55:11 +0000 (12:55 +0200)
commitf31fd57c604fa1563243f3522924466be65f5e9a
tree2915efe3603eef8e2d2e588b45844339e7f205a3
parent3d8b6ea6646e3e86afd83a27014001736cf6fc01
amdgpu: add a function to create amdgpu bo internally (v4)

a helper function to create and initialize amdgpu bo

v2: update error handling: add label and free bo
v3: update error handling: separate each error label
v4: update error handling and rebase

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu_bo.c