[Mesa-dev] [PATCH] winsys/amdgpu: Stop using amdgpu_bo_handle_type_kms_noimport
Dieter Nützel
Dieter at nuetzel-hh.de
Fri Nov 2 02:42:40 UTC 2018
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
Bugzilla: https://bugs.freedesktop.org/108096
is (code)FIXED with this.
Thank you very much, Michel!
Dieter
Am 01.11.2018 12:31, schrieb Michel Dänzer:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> It only behaves any different from amdgpu_bo_handle_type_kms with
> libdrm 2.4.93, and it breaks if an older version is picked up.
>
> Bugzilla: https://bugs.freedesktop.org/108096
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
> b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
> index 68f0562a644..f49fb47b80e 100644
> --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
> +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
> @@ -486,7 +486,7 @@ static struct amdgpu_winsys_bo
> *amdgpu_create_bo(struct amdgpu_winsys *ws,
> else if (initial_domain & RADEON_DOMAIN_GTT)
> ws->allocated_gtt += align64(size, ws->info.gart_page_size);
>
> - amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms_noimport,
> &bo->u.real.kms_handle);
> + amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms,
> &bo->u.real.kms_handle);
>
> amdgpu_add_buffer_to_global_list(bo);
>
> @@ -1355,7 +1355,7 @@ static struct pb_buffer
> *amdgpu_bo_from_handle(struct radeon_winsys *rws,
> else if (bo->initial_domain & RADEON_DOMAIN_GTT)
> ws->allocated_gtt += align64(bo->base.size,
> ws->info.gart_page_size);
>
> - amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms_noimport,
> &bo->u.real.kms_handle);
> + amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms,
> &bo->u.real.kms_handle);
>
> amdgpu_add_buffer_to_global_list(bo);
>
> @@ -1463,7 +1463,7 @@ static struct pb_buffer
> *amdgpu_bo_from_ptr(struct radeon_winsys *rws,
>
> amdgpu_add_buffer_to_global_list(bo);
>
> - amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms_noimport,
> &bo->u.real.kms_handle);
> + amdgpu_bo_export(bo->bo, amdgpu_bo_handle_type_kms,
> &bo->u.real.kms_handle);
>
> return (struct pb_buffer*)bo;
More information about the mesa-dev
mailing list