radv: only enable DB_STENCIL_INFO.ITERATE_FLUSH when necessary
When no HTILE for stencil this shouldn't be neessary. This also matches RadeonSI. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29349>
This commit is contained in:
committed by
Marge Bot
parent
2adf01fa61
commit
dcfa351af3
@@ -1912,10 +1912,11 @@ radv_initialise_ds_surface(const struct radv_device *device, struct radv_ds_buff
|
||||
ds->ac.db_z_info |= S_028038_DECOMPRESS_ON_N_ZPLANES(max_zplanes);
|
||||
|
||||
if (pdev->info.gfx_level >= GFX10) {
|
||||
const bool htile_stencil_disabled = radv_image_tile_stencil_disabled(device, iview->image);
|
||||
bool iterate256 = radv_image_get_iterate256(device, iview->image);
|
||||
|
||||
ds->ac.db_z_info |= S_028040_ITERATE_FLUSH(1);
|
||||
ds->ac.db_stencil_info |= S_028044_ITERATE_FLUSH(1);
|
||||
ds->ac.db_stencil_info |= S_028044_ITERATE_FLUSH(!htile_stencil_disabled);
|
||||
ds->ac.db_z_info |= S_028040_ITERATE_256(iterate256);
|
||||
ds->ac.db_stencil_info |= S_028044_ITERATE_256(iterate256);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user