-
Bas Nieuwenhuizen authored
That way we can actually import surfaces with modifiers & metadata planes. Tested with patches for ffmpeg to use this with kmsgrab & modifiers. For AMD & multiplanar formats we always have 1 format plane = 1 memory plane, even with modifiers. Intel (non Gallium) does have 1 format plane is 2 memory planes for some modifiers with NV12. Currently with Gallium we don't really have info about layer/plane ordering so this manually orders things so that they align with Intel. This shouldn't impact other drivers as without modifiers with metadata planes this should give equivalent behavior to the old import path. Reviewed-and-Tested-by: Leo Liu <leo.liu@amd.com> Part-of: <!10815>
fbf6511e