Skip to content

radeonsi/vcn: Avoid copy when resizing bitstream buffer

David Rosca requested to merge nowrep/mesa:vcn-bitstreamcopy into main

What does this MR do and why?

radeonsi/vcn: Avoid copy when resizing bitstream buffer

The copy from old buffer is only needed when appending (when
decode_bitstream is called more than once in one frame).
This avoids map old buffer -> memcpy to new buffer which can get
expensive with big buffers.

Together with !29131 (merged) this avoids all copies when resizing bitstream buffers, fixing CPU performance issues with big bitstream buffers.

Merge request reports