mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
etnaviv: blt: use correct TS offset in clear operations
Using the ts_offset from the level means we are always clearing the TS region of layer 0 of the level. Use the correct offset which takes into account the layer offset. Cc: mesa-stable Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19814>
This commit is contained in:
parent
58259e1437
commit
d9e2a7d6ad
1 changed files with 2 additions and 2 deletions
|
|
@ -235,7 +235,7 @@ etna_blit_clear_color_blt(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
if (surf->surf.ts_size) {
|
||||
clr.dest.use_ts = 1;
|
||||
clr.dest.ts_addr.bo = res->ts_bo;
|
||||
clr.dest.ts_addr.offset = surf->level->ts_offset;
|
||||
clr.dest.ts_addr.offset = surf->surf.ts_offset;
|
||||
clr.dest.ts_addr.flags = ETNA_RELOC_WRITE;
|
||||
clr.dest.ts_clear_value[0] = new_clear_value;
|
||||
clr.dest.ts_clear_value[1] = new_clear_value >> 32;
|
||||
|
|
@ -324,7 +324,7 @@ etna_blit_clear_zs_blt(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
if (surf->surf.ts_size) {
|
||||
clr.dest.use_ts = 1;
|
||||
clr.dest.ts_addr.bo = res->ts_bo;
|
||||
clr.dest.ts_addr.offset = surf->level->ts_offset;
|
||||
clr.dest.ts_addr.offset = surf->surf.ts_offset;
|
||||
clr.dest.ts_addr.flags = ETNA_RELOC_WRITE;
|
||||
clr.dest.ts_clear_value[0] = surf->level->clear_value;
|
||||
clr.dest.ts_clear_value[1] = surf->level->clear_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue