mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
etnaviv: blt: set TS dirty after clear
RS engine does this already, it is missing for BLT engine. This fixes cases where a clear isn't immediately at the start of the frame. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
d819d4b344
commit
e2b9d6277e
1 changed files with 2 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ etna_blit_clear_color_blt(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
if (surf->surf.ts_size) {
|
||||
ctx->framebuffer.TS_COLOR_CLEAR_VALUE = new_clear_value;
|
||||
surf->level->ts_valid = true;
|
||||
ctx->dirty |= ETNA_DIRTY_TS | ETNA_DIRTY_DERIVE_TS;
|
||||
}
|
||||
|
||||
surf->level->clear_value = new_clear_value;
|
||||
|
|
@ -325,6 +326,7 @@ etna_blit_clear_zs_blt(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
if (surf->surf.ts_size) {
|
||||
ctx->framebuffer.TS_DEPTH_CLEAR_VALUE = new_clear_value;
|
||||
surf->level->ts_valid = true;
|
||||
ctx->dirty |= ETNA_DIRTY_TS | ETNA_DIRTY_DERIVE_TS;
|
||||
}
|
||||
|
||||
surf->level->clear_value = new_clear_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue