diff options
Diffstat (limited to 'driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c')
-rw-r--r-- | driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c b/driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c index 3f622142d..df32f5d75 100644 --- a/driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c +++ b/driver/xf86-video-amdgpu/src/amdgpu_bo_helper.c @@ -79,7 +79,7 @@ struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width, } pixmap_buffer->ref_count = 1; - if ( bitsPerPixel == pScrn->bitsPerPixel) + if (usage_hint & AMDGPU_CREATE_PIXMAP_SCANOUT) bo_use |= GBM_BO_USE_SCANOUT; #ifdef HAVE_GBM_BO_USE_LINEAR |