radv: Add early exit for cache flushes.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 6 Jun 2017 17:15:47 +0000 (19:15 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 6 Jun 2017 21:23:43 +0000 (23:23 +0200)
commite08f7416780389c96d4359474ef69ae73a9ab530
treea58229443fd32a696abe6a345b85a4a5efd2f809
parent4ec89727b28bcfcc24cf2fa8b6d0a7eb6927fd3f
radv: Add early exit for cache flushes.

No sense checking each bit separately in the common case of none
being set.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/si_cmd_buffer.c