Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
va: add VASurfaceAttribAlignmentSize
Due to different HW implementation, the surface could require a different alignment size rather than the default ones, here introduces a new VASurfaceAttribute, alignment size, which contains two variables log2_width_alignment and log2_height_alignment, each has 4 bits, and the alignment needs to be left shifted 2**size from the application side. The alignment is in the powers of 2 and range in [2**0, ... 2**15] = [1, 2, 4, 8, ... 32768] And this alignment should be met when creating context as an add-on requirement. If not implemented, the existing/default alignment logic will be used. Signed-off-by: Ruijing Dong <[email protected]>
- Loading branch information