Skip to content

freedreno/a6xx: fix OUT_REG() vs growable cmdstream

Rob Clark requested to merge robclark/mesa:wip/struct-packing-fix into master

BEGIN_RING() could decide we can't fit the next packet in the current cmdstream segment, and grow a new segment. So we need to grab ring->cur after BEGIN_RING(), otherwise we are writing cmdstream past the end of the previous segment.

Fixes: bdd98b89 ("freedreno: New struct packing macros") Signed-off-by: Rob Clark

Merge request reports