summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-10-14 13:12:08 +1000
committerDave Airlie <[email protected]>2016-10-19 09:05:26 +1000
commit2c6d8bff0315716afcdad0156e288bd34eff72bb (patch)
tree917be1b97d487dfab35ebdac3ee82fcb3d1e3811 /src/intel/vulkan/anv_image.c
parentc6f1077e0d96400c89ad577e841b1851ab9e3349 (diff)
anv: drop local MIN/MAX macros.
Use the ones from mesa, most places already did. Acked-by: Jason Ekstrand <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r--src/intel/vulkan/anv_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 6237551a1b7..1701f5009a1 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -112,7 +112,7 @@ add_surface(struct anv_image *image, struct anv_surface *surf)
surf->offset = align_u32(image->size, surf->isl.alignment);
image->size = surf->offset + surf->isl.size;
- image->alignment = MAX(image->alignment, surf->isl.alignment);
+ image->alignment = MAX2(image->alignment, surf->isl.alignment);
}
/**