radv: Use for_each_bit in the descriptor set flush.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 17 Sep 2017 10:03:03 +0000 (12:03 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 20 Sep 2017 20:04:25 +0000 (22:04 +0200)
commit68dc19d4002fac0c743fd1f16a2aa9d839bed762
tree5d11235cbd7fe3760c5134b5ed85792987fdc839
parent25ea3852798dc2d32345727f062384024044409b
radv: Use for_each_bit in the descriptor set flush.

Since most games use only a few, iterating through all of them is
a waste. Simplifies the code too.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c