mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 08:38:08 +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>
(cherry picked from commit d9e2a7d6ad)
This commit is contained in:
parent
e13d53e1fd
commit
a318f3c8b7
2 changed files with 3 additions and 3 deletions
|
|
@ -1120,7 +1120,7 @@
|
|||
"description": "etnaviv: blt: use correct TS offset in clear operations",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -318,7 +318,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