mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-16 21:20:32 +01:00
pan/desc: Set clean_tile.write_zs for interleaved Z/S stencil clears
Fixes: 9fc555db03 ("pan/desc: Cache clean tile state")
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39759>
This commit is contained in:
parent
7bf9e203f2
commit
d2f21f65c6
1 changed files with 4 additions and 0 deletions
|
|
@ -1065,6 +1065,10 @@ pan_get_clean_tile_info(const struct pan_fb_info *fb)
|
|||
pan_image_view_get_zs_plane(fb->zs.view.zs).image : NULL;
|
||||
if (fb->zs.clear.z || pan_force_clean_write_on(img, fb->tile_size))
|
||||
clean_tile.write_zs = 1;
|
||||
const bool zs_has_stencil = img &&
|
||||
util_format_has_stencil(util_format_description(img->props.format));
|
||||
if (zs_has_stencil && fb->zs.clear.s)
|
||||
clean_tile.write_zs = 1;
|
||||
}
|
||||
|
||||
if (!fb->zs.discard.s) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue