mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
freedreno: Promote non-drawing batches to sysmem
Sometimes we can end up with a sequence where we need to flush a batch with no clears and no draws (for ex, to get a fence). Promote these to sysmem. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21747>
This commit is contained in:
parent
aaed609e57
commit
d5376c3feb
1 changed files with 6 additions and 0 deletions
|
|
@ -716,6 +716,12 @@ fd_gmem_render_tiles(struct fd_batch *batch)
|
|||
|
||||
ctx->submit_count++;
|
||||
|
||||
/* 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))
|
||||
sysmem = true;
|
||||
|
||||
if (!batch->nondraw) {
|
||||
#if HAVE_PERFETTO
|
||||
/* For non-draw batches, we don't really have a good place to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue