mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
freedreno: use bypass if only clears
Some things trigger batches that only contain a clear (like glmark2 startup). No point to use GMEM for this. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
840f6beb81
commit
3ab072d3c8
1 changed files with 4 additions and 1 deletions
|
|
@ -390,7 +390,10 @@ fd_gmem_render_tiles(struct fd_batch *batch)
|
|||
bool sysmem = false;
|
||||
|
||||
if (ctx->emit_sysmem_prep) {
|
||||
if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
|
||||
if (batch->num_draws == 0) {
|
||||
sysmem = true;
|
||||
} else if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
|
||||
// TODO maybe consider # of draws w/ blend enabled, etc?
|
||||
DBG("GMEM: cleared=%x, gmem_reason=%x, num_draws=%u",
|
||||
batch->cleared, batch->gmem_reason, batch->num_draws);
|
||||
} else if (!(fd_mesa_debug & FD_DBG_NOBYPASS)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue