radv: fix flushing indirect descriptors
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Sep 2018 13:40:08 +0000 (15:40 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 14 Sep 2018 08:59:52 +0000 (10:59 +0200)
commit748f4cce183007587a6688ef25ad5f9dbea5c33c
tree9371181d9bc3028d79d78d4a6b6c75e3f80bc1ae
parent063264db5be2941746fa58f164cdc803362753a9
radv: fix flushing indirect descriptors

Let say, we first bind a graphics pipeline that needs indirect
descriptors sets. The userdata pointers will be emitted at draw
time. Then if we bind a compute pipeline that doesn't need any
indirect descriptors, the driver will re-emit them for all
grpahics stages.

To avoid this to happen, just check the bind point type.

CC: 18.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c