[Mesa-dev] [PATCH] etnaviv: disable in-place resolve for non-supertiled surfaces

Christian Gmeiner christian.gmeiner at gmail.com
Mon Jan 1 21:28:58 UTC 2018


2017-12-19 17:35 GMT+01:00 Lucas Stach <l.stach at pengutronix.de>:
> The in-place resolve probably has some additional restrictions when not
> operating on a super tiled surface. Disable it on non-supertiled surfaces
> for now to work around a GPU hang.
>
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>

> ---
>  src/gallium/drivers/etnaviv/etnaviv_rs.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.c b/src/gallium/drivers/etnaviv/etnaviv_rs.c
> index 60c2c39101dd..2c9b267f724a 100644
> --- a/src/gallium/drivers/etnaviv/etnaviv_rs.c
> +++ b/src/gallium/drivers/etnaviv/etnaviv_rs.c
> @@ -126,6 +126,7 @@ etna_compile_rs_state(struct etna_context *ctx, struct compiled_rs_state *cs,
>           rs->source_offset == rs->dest_offset &&
>           rs->source_format == rs->dest_format &&
>           rs->source_tiling == rs->dest_tiling &&
> +         (rs->source_tiling & ETNA_LAYOUT_BIT_SUPER) &&
>           rs->source_stride == rs->dest_stride &&
>           !rs->downsample_x && !rs->downsample_y &&
>           !rs->swap_rb && !rs->flip &&
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev



-- 
greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info


More information about the etnaviv mailing list