freedreno/a6xx: Switch to batch->cleared

batch->fast_cleared will be per-subpass.  But we can use the cleared
bitmask instead in the few places where we just need to know if there
was a clear in any subpass.  For the conditional-ib it is even
preferable since we know a clear touched the contents of the tile so
we know what the result of the conditional would be.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22895>
This commit is contained in:
Rob Clark 2023-04-22 11:07:58 -07:00 committed by Marge Bot
parent f61766df22
commit 10f625eb13
2 changed files with 3 additions and 3 deletions

View file

@ -660,7 +660,7 @@ emit_conditional_ib(struct fd_batch *batch, const struct fd_tile *tile,
* forces an unconditional IB (because we know there is something
* to do for this tile)
*/
if (batch->fast_cleared || !use_hw_binning(batch)) {
if (batch->cleared || !use_hw_binning(batch)) {
fd6_emit_ib(batch->gmem, target);
return;
}

View file

@ -493,7 +493,7 @@ gmem_key_init(struct fd_batch *batch, bool assume_zs, bool no_scis_opt)
* u_blitter will show up as a normal draw with depth and/or
* stencil enabled.
*/
unsigned zsclear = batch->fast_cleared & (FD_BUFFER_DEPTH | FD_BUFFER_STENCIL);
unsigned zsclear = batch->cleared & (FD_BUFFER_DEPTH | FD_BUFFER_STENCIL);
if (zsclear) {
const struct util_format_description *desc =
util_format_description(pfb->zsbuf->format);
@ -723,7 +723,7 @@ fd_gmem_render_tiles(struct fd_batch *batch)
/* Sometimes we need to flush a batch just to get a fence, with no
* clears or draws.. in this case promote to nondraw:
*/
if (!(batch->fast_cleared || batch->num_draws))
if (!(batch->cleared || batch->num_draws))
sysmem = true;
if (!batch->nondraw) {