diff mbox series

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

Message ID 20190624165406.13682-10-michel@daenzer.net (mailing list archive)
State New, archived
Headers show
Series amdgpu: | expand

Commit Message

Michel Dänzer June 24, 2019, 4:54 p.m. UTC
From: Michel Dänzer <michel.daenzer@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@amd.com>
---
 src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;