diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-10 09:18:05 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-13 11:05:40 +0100 |
commit | 934b77f2fe8b0e40d21adcb2dfa484cbd6852b36 (patch) | |
tree | f6f19bf5428308c231d210b100793ee700759117 | |
parent | 305745457c12fd54ff98d2f090dcebee27d5d33e (diff) |
radv: add unlikely() around radv_save_descriptors()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |