Commit 6bd3dc6b authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer

Check for AMDGPU_CREATE_PIXMAP_SCANOUT in amdgpu_glamor_create_pixmap

We must not call glamor_create_pixmap or fbCreatePixmap when it's set.

Closes: #21
parent 2202cdfb
Pipeline #201814 passed with stages
in 1 minute and 10 seconds
...@@ -209,7 +209,8 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, ...@@ -209,7 +209,8 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
if (!format) if (!format)
return NULL; return NULL;
if (!AMDGPU_CREATE_PIXMAP_SHARED(usage)) { if (!(usage & AMDGPU_CREATE_PIXMAP_SCANOUT) &&
!AMDGPU_CREATE_PIXMAP_SHARED(usage)) {
if (info->shadow_primary) { if (info->shadow_primary) {
if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP)
return fbCreatePixmap(screen, w, h, depth, usage); return fbCreatePixmap(screen, w, h, depth, usage);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment