Skip to content

backport: winsys/amdgpu: Retrieve WC flags from imported buffers.

Bas Nieuwenhuizen requested to merge bnieuwenhuizen/mesa:winsys-20 into staging/20.0

Otherwise reading from an imported mapped GTT+WC linear texture is painfully slow.

Sadly no radeon winsys implementation, as I don't know a suitable kernel driver operation.

Hit this in vaGetImage with an image imported from minigbm (which we are switching to allocate WC for SCANOUT images).

Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Marek Olšák marek.olsak@amd.com Acked-by: Pierre-Eric Pelloux-Prayer pierre-eric.pelloux-prayer@amd.com Part-of: !4542 (merged) (cherry picked from commit d80fb024)

Merge request reports