From: Samuel Pitoiset Date: Fri, 10 Nov 2017 08:18:05 +0000 (+0100) Subject: radv: add unlikely() around radv_save_descriptors() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=934b77f2fe8b0e40d21adcb2dfa484cbd6852b36;p=mesa.git radv: add unlikely() around radv_save_descriptors() Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 45fe51a2b9b..1f34d074767 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1727,7 +1727,7 @@ radv_flush_descriptors(struct radv_cmd_buffer *cmd_buffer, cmd_buffer->state.descriptors_dirty = 0; cmd_buffer->state.push_descriptors_dirty = false; - if (cmd_buffer->device->trace_bo) + if (unlikely(cmd_buffer->device->trace_bo)) radv_save_descriptors(cmd_buffer); assert(cmd_buffer->cs->cdw <= cdw_max);