[PATCH] Fixes for interaction of imported dma-bufs and scanout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For nouveau, radeon, and amdgpu attempting to scanout of a bo will cause
the driver to migrate it to VRAM.

When the bo in question is an imported dma-buf, this results in a buffer
that appears to be shared but is actually device-private.

Consensus on #dri-devel seemed to be that it would be appropriate for
addfb to fail when attempted on an imported dma-buf.

It *might* also be appropriate to fail addfb on an exported dma-buf (as
that is likewise pinned to GTT), but #dri-devel thought it possible the
buffer could be unshared between addfb and actually trying to scanout.
An imported dma-buf doesn't have the same problem.

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux