Skip to content

virgl: Set use_staging in resource_from_handle

Isaac Bosompem requested to merge mrisaacb/mesa:virgl-resource-readback into main

This flag controls virgl's behavior when buffers are accessed on the guest through Mesa's GBM interface.

As such, this flag needs to be consistent in both the resource creation and fd import case. Previously, the fd import resource's flag value would be inconsistent with the original resource's value.

This patch fixes this by inferring the value of this flag based on the resource's size.

(Reworked from !16461 (closed))

Signed-Off By: Isaac Bosompem mrisaacb@google.com

Merge request reports