Linux 4.9 Has Tear-Free PRIME Offloading Between Intel & AMDGPU

Written by Michael Larabel in AMD on 20 November 2016 at 10:46 AM EST. 21 Comments
Quietly landing last week into the mainline Linux kernel as part of the AMDGPU fixes is support for tear-free PRIME offloading between Intel and AMDGPU.

The drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5) patch was merged fairly late into the Linux 4.9 kernel merge window.

The patch by Mario Kleiner explains, "External clients which import our bo's [buffer objects] wait only for exclusive dmabuf-fences, not on shared ones, ditto for bo's which we import from external providers and write to. Therefore attach exclusive fences on prime shared buffers if our exported buffer gets imported by an external client, or if we import a buffer from an external exporter... Prime export tested on Intel iGPU + AMD Tonga dGPU as DRI3/Present Prime render offload, and with the Tonga standalone as primary gpu."

This should allow for tear-free PRIME offloading on the multi-GPU systems with the Intel DRM driver and an AMDGPU-supported Radeon GPU. Further details via this bug report.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week