radv: reduce CPU overhead in radv_flush_descriptors()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 Jul 2018 10:43:40 +0000 (12:43 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 9 Jul 2018 11:56:58 +0000 (13:56 +0200)
commit5e5a28d52a8068419ec795843777048236b36bcf
treedae59fb52654f65006337ba1c97bc3663717fde8
parent81ca08e0300bcf5af48370db6f5f879ade20d930
radv: reduce CPU overhead in radv_flush_descriptors()

The number of enabled descriptors for a given pipeline stage
can be computed at compile time.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_shader.h