radv/meta: fix restoring a push descriptor set
authorFredrik Höglund <fredrik@kde.org>
Tue, 2 May 2017 15:09:27 +0000 (17:09 +0200)
committerFredrik Höglund <fredrik@kde.org>
Fri, 5 May 2017 23:46:18 +0000 (01:46 +0200)
commit5ff48581119258214801de24a327bdd6a29e0ccc
tree735109a70a861d0982a49b3984f58e0157460627
parentf6ac3d0db67dd81f0aff754b977ed1277b33af63
radv/meta: fix restoring a push descriptor set

radv_bind_descriptor_set cannot be used to bind a push descriptor set
since a push descriptor set does not have a buffer list. However,
there is no need to add the buffers again when restoring a set, so
this fix is also an optimization.

Cc: "17.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_meta.c