Commit fbf6511e authored by Committed by Marge BotBrowse files
gallium/va: Add support for PRIME_2 import.
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 <firstname.lastname@example.org> Part-of: <!10815>
Showing with 141 additions and 2 deletions