radv: add shader BOs to the list at pipeline bind time
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 10 Apr 2018 12:09:04 +0000 (14:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 10 Apr 2018 19:55:28 +0000 (21:55 +0200)
commit9f6a28eb27ca059cbadfa5e277bfe4509a426615
tree3f415440e5800eaffda46fce49cf5be27425560d
parente29facff315ea63b8643766a45b3e56bf1dd8866
radv: add shader BOs to the list at pipeline bind time

Otherwise, the shader BOs are not added to the list on SI because
prefetching isn't supported. Calling radv_cs_add_buffer() in the
prefetch codepath was a bad idea.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105952
Fixes: 4ad7595f35 ("radv: rename radv_emit_prefetch() to radv_emit_prefetch_L2")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Turo Lamminen <turo@alternativegames.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c