winsys/amdgpu: do not iterate twice when adding fence dependencies
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Jan 2017 13:35:23 +0000 (14:35 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 12:44:25 +0000 (13:44 +0100)
commit86eb52adad583182b5878b933d12db87535b84ed
tree4f4a43b2f98768dee483c19a96f968608d340a10
parent5a6b1aadeadc66b802bd87f1201304d0c3188114
winsys/amdgpu: do not iterate twice when adding fence dependencies

The perf difference is very small, 3.25->2.84% in amdgpu_cs_flush()
in the DXMD benchmark.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c