Skip to content

aux/tc: handle stride mismatch during rp-optimized subdata

Mike Blumenkrantz requested to merge zmike/mesa:tc-stride into main

What does this MR do and why?

aux/tc: handle stride mismatch during rp-optimized subdata

to avoid splitting renderpasses, this subdata optimization handles the usual driver dance of staging buffer -> gpu copy

if the pbo stride doesn't match the image format's stride, however, then a direct copy will yield broken pixels and the image will misrender. to avoid this, detect stride mismatch and translate the single subdata call into a sequence of non-overlapping subdata calls that the driver can magically figure out while continuing to not split renderpasses

fixes #9589 (closed)

cc: mesa-stable

Merge request reports