af8fa2644e
Assumes cmd_buffer != NULL for this path to eliminate the checks in the generic code. Benchmarks: I made a microbenchmark based on Bas' vulkan microbench suite. https://gitlab.freedesktop.org/bnieuwenhuizen/vulkan_microbench/-/merge_requests/1 In this benchmark, this improves vkDescriptorTemplateUpdate performance consistently by 36%. ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- DescriptorTemplateUpdate 81.2 ns 81.2 ns 8573169 -> ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- DescriptorTemplateUpdate 52.9 ns 52.9 ns 13306065 Signed-off-by: Joshua Ashton <joshua@froggi.es> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13342>