Skip to content

Commit 6a74e23

Browse files
committed
alloc fence for imported bo when prepare fb
Signed-off-by: Xue, Bosheng <bosheng.xue@intel.com>
1 parent 28ae3c0 commit 6a74e23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/virtio/virtgpu_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ static int virtio_gpu_plane_prepare_fb(struct drm_plane *plane,
634634
if (!bo || (plane->type == DRM_PLANE_TYPE_PRIMARY && !bo->guest_blob))
635635
return 0;
636636

637-
if (bo->dumb) {
637+
if (bo->dumb || vgfb->base.obj[0]->import_attach) {
638638
vgplane_st->fence = virtio_gpu_fence_alloc(vgdev,
639639
vgdev->fence_drv.context,
640640
0);

0 commit comments

Comments
 (0)