Re: [PATCH libdrm 4/4] amdgpu: add a function to create amdgpu bo internally

2018-08-08 Thread Christian König
Am 08.08.2018 um 09:12 schrieb Zhang, Jerry (Junwei): On 08/08/2018 02:51 PM, Christian König wrote: Am 08.08.2018 um 06:08 schrieb Junwei Zhang: a helper function to create and initialize amdgpu bo Can the new function be also used to initialize a BO structure during import? Yeah, that's

Re: [PATCH libdrm 4/4] amdgpu: add a function to create amdgpu bo internally

2018-08-08 Thread Zhang, Jerry (Junwei)
On 08/08/2018 02:51 PM, Christian König wrote: Am 08.08.2018 um 06:08 schrieb Junwei Zhang: a helper function to create and initialize amdgpu bo Can the new function be also used to initialize a BO structure during import? Yeah, that's what I'm going to talk a bit more in this patch.

Re: [PATCH libdrm 4/4] amdgpu: add a function to create amdgpu bo internally

2018-08-08 Thread Christian König
Am 08.08.2018 um 06:08 schrieb Junwei Zhang: a helper function to create and initialize amdgpu bo Can the new function be also used to initialize a BO structure during import? Apart from that it look like a nice cleanup to me, Christian. Signed-off-by: Junwei Zhang ---

[PATCH libdrm 4/4] amdgpu: add a function to create amdgpu bo internally

2018-08-07 Thread Junwei Zhang
a helper function to create and initialize amdgpu bo Signed-off-by: Junwei Zhang --- amdgpu/amdgpu_bo.c | 81 ++ 1 file changed, 33 insertions(+), 48 deletions(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index a7f0662..59cba69