Skip to content

gstgl: Fix handling of padded tile formats

When a tile format is padded and imported as DMABuf, the stride contains the information about the actual width and height in number of tiles. This information is needed by the detiling shader in order accuratly calculate the location of pixels. To fix that, we also copy the offset and strides into the otuput format and the converter will ensure that the shader is recompiled whenever the stride changes.

This fixes video corruptions observed when decoding on MT8195 with videos that aren't not aligned to 64bytes in width.

Merge request reports