winsys/amdgpu: take fences when freeing a backing buffer
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 7 Feb 2017 16:58:39 +0000 (17:58 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Apr 2017 08:37:18 +0000 (10:37 +0200)
commit0baee15596d51df5fe0f0edd4b48bd500c26e2cd
tree6e43b0082c18e466636b4a51e8c8ea1546655656
parent79dae12b416d3544da6d7b3eb8d43d4a934f93ce
winsys/amdgpu: take fences when freeing a backing buffer

We never add fences to backing buffers during submit. When we free a
backing buffer, it must inherit the sparse buffer's fences, so that it
doesn't get re-used prematurely via the cache.

v2:
- remove pipe_mutex_*

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c