mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 16:10:36 +02:00
radeonsi: don't flush HTILE if there is no HTILE clear
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
5fb31a1734
commit
29a09e1d38
1 changed files with 2 additions and 2 deletions
|
|
@ -593,9 +593,9 @@ static void si_clear(struct pipe_context *ctx, unsigned buffers,
|
|||
*
|
||||
* This hack decreases back-to-back ClearDepth performance.
|
||||
*/
|
||||
if (sctx->screen->clear_db_cache_before_clear) {
|
||||
if ((sctx->db_depth_clear || sctx->db_stencil_clear) &&
|
||||
sctx->screen->clear_db_cache_before_clear)
|
||||
sctx->flags |= SI_CONTEXT_FLUSH_AND_INV_DB;
|
||||
}
|
||||
}
|
||||
|
||||
si_blitter_begin(sctx, SI_CLEAR);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue