summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_rs.h
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2018-02-05 18:59:48 +0100
committerLucas Stach <[email protected]>2018-02-23 15:34:39 +0100
commit8df11f3fad52507266ca1e97149fd4175ad05471 (patch)
tree92a6e90ef0a6941057201219a5e917170638c5b8 /src/gallium/drivers/etnaviv/etnaviv_rs.h
parentadd23b59c9c1e7a162e76c885d1f8763807bc157 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_rs.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_rs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.h b/src/gallium/drivers/etnaviv/etnaviv_rs.h
index e71dfa0b8a0..125a13a9ad3 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_rs.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_rs.h
@@ -56,6 +56,7 @@ struct rs_state {
uint32_t clear_bits;
uint32_t clear_mode; /* VIVS_RS_CLEAR_CONTROL_MODE_XXX */
uint32_t clear_value[4];
+ uint32_t tile_count;
uint8_t aa;
uint8_t endian_mode; /* ENDIAN_MODE_XXX */
};