radv: move descriptor sets out of cmd_state.
authorDave Airlie <airlied@redhat.com>
Sun, 5 Nov 2017 23:37:47 +0000 (23:37 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 01:11:03 +0000 (01:11 +0000)
commit60a9705e0040a0962b82ec5363c14503d8a96d42
treef5524aecb89aa915d66ee086cb3af536f624ef17
parent3a0d0982522a995f15553d88cfef1c11de63a16c
radv: move descriptor sets out of cmd_state.

Instead of storing all the pointers and zeroing them all out,
just store a valid bitmask in the state. This also moves
the CmdBindPipeline path down the cpu usage path for the
multithreading demo as it no longer has to traverse MAX_SETS
to find the active descriptor sets.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_meta.c
src/amd/vulkan/radv_private.h