From 0097592f8cf32466944e465532bf661a86d0da2f Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 15 Nov 2022 17:30:22 +0100 Subject: [PATCH] etnaviv: rs: set TS_MODE for inplace resolve When using the inplace resolve the TS_MODE isn't taken from the RS_SOURCE_STRIDE state, but need to be set in RS_EXTRA_CONFIG. Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/drivers/etnaviv/etnaviv_rs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.c b/src/gallium/drivers/etnaviv/etnaviv_rs.c index e49279cd138..bc703183f5d 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_rs.c +++ b/src/gallium/drivers/etnaviv/etnaviv_rs.c @@ -174,6 +174,8 @@ etna_compile_rs_state(struct etna_context *ctx, struct compiled_rs_state *cs, !rs->swap_rb && !rs->flip && !rs->clear_mode && rs->source_padded_width && !rs->source_ts_compressed) { + if (VIV_FEATURE(ctx->screen, chipMinorFeatures6, CACHE128B256BPERLINE)) + cs->RS_EXTRA_CONFIG |= VIVS_RS_EXTRA_CONFIG_TS_MODE(rs->source_ts_mode); /* Total number of tiles (same as for autodisable) */ cs->RS_KICKER_INPLACE = rs->tile_count; }