Skip to content

va:allocator: We should use the same info when creating pool and mapping

The image pitch/stride from vaDeriveImage and vaCreateImage might be different because they use different tiling type, i,e, vaCreateImage use TILING_NONE by default, vaDeriveImage updates tiletype according to surface format, which varies with platforms. So, using image info from vaCreateImage to create the bufferpool and then possibly giving derived_info in the mapping will cause stride problem. We should constantly use the same info when creating bufferpool and the later mapping.

Merge request reports