[Mesa-dev] [PATCH 8/8] radv: add unlikely() around radv_save_descriptors()
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun Nov 12 22:21:23 UTC 2017
For the series:
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Fri, Nov 10, 2017 at 9:18 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_cmd_buffer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index 7c163bdd4d..462790d5d0 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -1721,7 +1721,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);
> --
> 2.15.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list