From 7cec6c5dfdc44363f340bf4f8aa93e57a5140ca3 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 28 May 2015 09:50:18 -0700 Subject: [PATCH] vk: Define MAX(a, b) macro --- src/vulkan/private.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/private.h b/src/vulkan/private.h index abc0cfb8ec2..db7f5f30af3 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -58,6 +58,8 @@ extern "C" { #define anv_noreturn __attribute__((__noreturn__)) #define anv_printflike(a, b) __attribute__((__format__(__printf__, a, b))) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + static inline uint32_t ALIGN_U32(uint32_t v, uint32_t a) { -- 2.30.2