etnaviv: rs: msaa: Set cache mode for SMALL_MSAA

If the GPU supports SMALL_MSAA and does not support CACHE128B256BPERLINE we
need to set the cache mode to CACHE_MODE_256B.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19013>
This commit is contained in:
Christian Gmeiner
2022-08-11 16:27:30 +02:00
committed by Marge Bot
parent a9b11d02d3
commit 24db330f8c

View File

@@ -109,6 +109,8 @@ etna_compile_rs_state(struct etna_context *ctx, struct compiled_rs_state *cs,
if (VIV_FEATURE(ctx->screen, chipMinorFeatures6, CACHE128B256BPERLINE))
cs->RS_SOURCE_STRIDE |= VIVS_RS_SOURCE_STRIDE_TS_MODE(rs->source_ts_mode) |
COND(src_super, VIVS_RS_SOURCE_STRIDE_SUPER_TILED_NEW);
else if ((rs->downsample_x || rs->downsample_y) && VIV_FEATURE(screen, chipMinorFeatures4, SMALL_MSAA))
cs->RS_SOURCE_STRIDE |= VIVS_RS_SOURCE_STRIDE_TS_MODE(TS_MODE_256B);
/* Initially all pipes are set to the base address of the source and
* destination buffer respectively. This will be overridden below as