mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
freedreno: Simplify add_dep logic
These two cases never happen, guaranteed by the logic above that adds to the batches[] table. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18200>
This commit is contained in:
parent
027dbe2cb3
commit
425514e62e
1 changed files with 1 additions and 2 deletions
|
|
@ -172,8 +172,7 @@ fd_bc_flush(struct fd_context *ctx, bool deferred) assert_dt
|
|||
struct fd_batch *current_batch = fd_context_batch(ctx);
|
||||
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
if (batches[i] && (batches[i]->ctx == ctx) &&
|
||||
(batches[i] != current_batch)) {
|
||||
if (batches[i] != current_batch) {
|
||||
fd_batch_add_dep(current_batch, batches[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue