From: Christian Gmeiner Date: Fri, 27 Sep 2019 11:08:24 +0000 (+0200) Subject: etnaviv: etna_resource_copy_region(..): drop assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd1ed6f4f81347aa5ab87c4eb0eadab01fe5f0a5;p=mesa.git etnaviv: etna_resource_copy_region(..): drop assert We are using util_resource_copy_region(..) as fallback which supports different formats for src and dst. Improves the experience when running deqp or piglit with a debug build. Signed-off-by: Christian Gmeiner Reviewed-by: Jonathan Marek --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c index df12e609ac9..4a3f62ac133 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c +++ b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c @@ -114,9 +114,6 @@ etna_resource_copy_region(struct pipe_context *pctx, struct pipe_resource *dst, { struct etna_context *ctx = etna_context(pctx); - /* The resource must be of the same format. */ - assert(src->format == dst->format); - /* XXX we can use the RS as a literal copy engine here * the only complexity is tiling; the size of the boxes needs to be aligned * to the tile size