etnaviv: fix ts size calculation
authorJonathan Marek <jonathan@marek.ca>
Thu, 4 Jul 2019 17:30:55 +0000 (13:30 -0400)
committerJonathan Marek <jonathan@marek.ca>
Thu, 4 Jul 2019 18:05:09 +0000 (14:05 -0400)
commitbc5ae6a330102a1ae4ef573539f79393e64bb2c0
treefca6d8b6a9a42599da20c803ec17e509a0055e70
parent2f540745adbee0737b4d0fcc34b7ed96bf0e501c
etnaviv: fix ts size calculation

The size of the TS is screen->specs.bits_per_tile bits per tile, with each
tile being 64 bytes of the resource.

This gives the same result for 32bpp formats, but reduces the size of TS
for 16bpp formats by 2.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c