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:
Rob Clark 2022-08-22 14:40:48 -07:00 committed by Marge Bot
parent 027dbe2cb3
commit 425514e62e

View file

@ -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]);
}
}