[PATCH mesa 9/9] winsys/amdgpu: Use amdgpu_bo_handle_type_kms_user for API KMS handles

Michel Dänzer michel at daenzer.net
Mon Jun 24 16:54:06 UTC 2019


From: Michel Dänzer <michel.daenzer at amd.com>

Gallium API callers expect the returned handles to be valid for the
DRM file descriptor passed to the driver during initialization, which
may not be the case with amdgpu_bo_handle_type_kms.

Bugzilla: https://bugs.freedesktop.org/110903
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index 37098ab305f..d4f7e1c7a95 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -1544,7 +1544,7 @@ static bool amdgpu_bo_get_handle(struct pb_buffer *buffer,
       type = amdgpu_bo_handle_type_dma_buf_fd;
       break;
    case WINSYS_HANDLE_TYPE_KMS:
-      type = amdgpu_bo_handle_type_kms;
+      type = amdgpu_bo_handle_type_kms_user;
       break;
    default:
       return false;
-- 
2.20.1



More information about the amd-gfx mailing list