etnaviv: fix in-place resolve tile count
authorLucas Stach <l.stach@pengutronix.de>
Mon, 5 Feb 2018 17:59:48 +0000 (18:59 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 23 Feb 2018 14:34:39 +0000 (15:34 +0100)
commit8df11f3fad52507266ca1e97149fd4175ad05471
tree92a6e90ef0a6941057201219a5e917170638c5b8
parentadd23b59c9c1e7a162e76c885d1f8763807bc157
etnaviv: fix in-place resolve tile count

TS tiles map to a fixed amount of bytes in the color/depth surface,
so the blocksize of the format needs to be taken into account when
calculating the number of tiles to fill.

The simplest fix is to just use the layer stride, which is the surface
size in bytes.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_rs.c
src/gallium/drivers/etnaviv/etnaviv_rs.h