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

Submitted by Michel Dänzer on June 24, 2019, 4:54 p.m.

Details

Message ID 20190624165406.13682-10-michel@daenzer.net
State Rejected
Headers show
Series "amdgpu:" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Michel Dänzer June 24, 2019, 4:54 p.m.
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(-)

Patch hide | download patch | download mbox

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;