radeonsi: use unsynchronized transfers for shader binary uploads
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Apr 2017 22:36:12 +0000 (00:36 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Apr 2017 17:15:22 +0000 (19:15 +0200)
commitec301497b87e915924240173ac2854d835446cc6
treeac6b1a5c3ee9062249e6c65cfb5474cf2ab5aab0
parent96b0cfc82ef08c0a81016278c69f24766f2410b2
radeonsi: use unsynchronized transfers for shader binary uploads

Because the buffer is new, it can't be referenced by any CS.

This can save few CPU cycles by skipping the whole
PIPE_TRANSFER_UNSYNCHRONIZED if in amdgpu_bo_map().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c