[PATCH xf86-video-amdgpu 06/11] Set AMDGPU_BO_FLAGS_GBM for cursor buffers allocated from GBM

Michel Dänzer michel at daenzer.net
Wed Jun 10 02:04:21 PDT 2015


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

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_kms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 1e256af..cfdf716 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1037,6 +1037,7 @@ static Bool amdgpu_setup_kernel_mem(ScreenPtr pScreen)
 					return FALSE;
 				}
 				info->cursor_buffer[c]->ref_count = 1;
+				info->cursor_buffer[c]->flags = AMDGPU_BO_FLAGS_GBM;
 
 				info->cursor_buffer[c]->bo.gbm = gbm_bo_create(info->gbm,
 									       info->cursor_w,
-- 
2.1.4



More information about the xorg-driver-ati mailing list