Skip to content

panfrost: Tiled to linear layout conversion

Icecream95 requested to merge icecream95/mesa:linear-convert into master

Tiling is expensive, so this patch converts textures that appear to be used for streaming to a linear layout.

Performance of mpv is significantly improved, with software-decoded 1080p mp4 playback on RK3288 going from 30fps to 50fps when testing with --untimed --no-audio.

To keep things simple, conversion only happens when updating the whole texture and no mipmapping is used.

I'm not sure if anything special needs to be done when updating the layout in panfrost_get_tex_desc, or if unconditionally setting it even when the layout isn't changing will hurt performance.

Merge request reports