diff options
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r-- | src/amdgpu_dri2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index ff1b94a..a6b76a1 100644 --- a/src/amdgpu_dri2.c +++ b/src/amdgpu_dri2.c @@ -171,6 +171,12 @@ amdgpu_dri2_create_buffer2(ScreenPtr pScreen, if (is_glamor_pixmap) { pixmap = amdgpu_glamor_set_pixmap_bo(drawable, pixmap); pixmap->refcnt++; + + /* The copy operation from amdgpu_glamor_set_pixmap_bo needs to + * be flushed to the kernel driver before the client starts + * using the pixmap storage for direct rendering. + */ + amdgpu_glamor_flush(pScrn); } if (!amdgpu_get_flink_name(pAMDGPUEnt, pixmap, &buffers->name)) |