diff options
author | Christian Gmeiner <[email protected]> | 2019-02-23 16:15:19 +0100 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2019-03-01 08:08:56 +0100 |
commit | 64813541d575c4244293c6cbcd9739b12a22a76f (patch) | |
tree | 1c38ccda0971694c7d747e6d7a50bfb38c71b731 /src/gallium/drivers/swr/swr_resource.h | |
parent | f1061fa5771496ae95f195c1aa590736cd209414 (diff) |
etnaviv: fix resource usage tracking across different pipe_context's
A pipe_resource can be shared by all the pipe_context's hanging off the
same pipe_screen.
Changes from v2 -> v3:
- add locking with mtx_*() to resource and screen (Marek)
Changes from v3 -> v4:
- drop rsc->lock, just use screen->lock for the entire serialization (Marek)
- simplify etna_resource_used() flush condition, which also prevents
potentially flushing resources twice (Marek)
- don't remove resouces from screen->used_resources in
etna_cmd_stream_reset_notify(), they may still be used in other
contexts and may need flushing there later on (Marek)
Changes from v4 -> v5:
- Fix coding style issues reported by Guido
Changes from v5 -> v6:
- Add missing locking in etna_transfer_map(..) (Boris)
Signed-off-by: Christian Gmeiner <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Tested-by: Marek Vasut <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Tested-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_resource.h')
0 files changed, 0 insertions, 0 deletions