diff options
author | Rob Clark <[email protected]> | 2017-11-20 09:52:04 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-03 14:17:40 -0500 |
commit | deb57fb237c3be9629a39ef1978dfac4563d6bda (patch) | |
tree | 5fbdb02070f785338e473db017e5f5b5f40a2f58 /src/gallium/drivers/freedreno/freedreno_batch.h | |
parent | ef6313ffd3c0e764142ed2df87b52264bd7d4188 (diff) |
freedreno: proper locking for iterating dependent batches
In transfer_map(), when we need to flush batches that read from a
resource, we should be holding screen->lock to guard against race
conditions. Somehow deferred flush seems to make this existing
race more obvious.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_batch.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_batch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.h b/src/gallium/drivers/freedreno/freedreno_batch.h index 41356e3519f..8b05f0657aa 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.h +++ b/src/gallium/drivers/freedreno/freedreno_batch.h @@ -66,7 +66,7 @@ struct fd_hw_sample; struct fd_batch { struct pipe_reference reference; unsigned seqno; - unsigned idx; + unsigned idx; /* index into cache->batches[] */ int in_fence_fd; bool needs_out_fence_fd; |