mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
etnaviv: blt: fix tile count calculation for in-place resolve
A in-place resolve via the BLT engine is only supposed to fill the
tiles of a single layer of a resource, so the size to calculate the
number of tiles is the layer stride, same as done for the in-place
resolve via the RS engine in
8df11f3fad ("etnaviv: fix in-place resolve tile count.")
CC: mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39005>
This commit is contained in:
parent
c00ebca5c4
commit
075eefc422
1 changed files with 1 additions and 1 deletions
|
|
@ -700,7 +700,7 @@ etna_try_blt_blit(struct pipe_context *pctx,
|
|||
op.ts_clear_value[0] = src_lev->clear_value;
|
||||
op.ts_clear_value[1] = src_lev->clear_value >> 32;
|
||||
op.ts_mode = src_lev->ts_mode;
|
||||
op.num_tiles = DIV_ROUND_UP(src_lev->size, tile_size);
|
||||
op.num_tiles = src_lev->layer_stride / tile_size;
|
||||
op.bpp = util_format_get_blocksize(src->base.format);
|
||||
|
||||
etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, 0x00000c23);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue