turnip: Disable tiling on 1D images.
authorEmma Anholt <emma@anholt.net>
Wed, 9 Mar 2022 01:17:00 +0000 (17:17 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 2 Apr 2022 19:55:40 +0000 (19:55 +0000)
commit4cd51efedbb516afa39ce043e9b2aa039534fd63
treede9ccc0ef612dede6cf697723cc8671784aec7bf
parent71fcb751eba9552044edffbd3db0888323a08a0e
turnip: Disable tiling on 1D images.

If we know the height is 1, then it would be a waste to align each
miplevel to tile height.  For non-mipmapped textures, it doesn't save us
memory (since you still align to 4 on the last miplevel), but it should be
better cache locality by not loading those unused lines.

Incidentally, this gets us some more coverage of swap != WZYX cases in CTS
tests, which often use optimal tiling without also testing linear.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15293>
src/freedreno/vulkan/tu_image.c