summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 04:17:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 04:17:02 +0000
commit8e5b0334dd3dc75230eb8278bc7ddd9779af04b7 (patch)
treedea0e1b61d3a201daf1ca78c34c299936199735d /lib
parent38ae995283c2a71f9f949f2b9a13c9c24db1325f (diff)
radv: Don't take absolute value of unsigned type.
From Oschowa c2a778ef0f1720f9fb28afd40a791488648218d0 in mainline mesa reduces clang warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/mesa/src/amd/vulkan/radv_meta_blit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/amd/vulkan/radv_meta_blit.c b/lib/mesa/src/amd/vulkan/radv_meta_blit.c
index b7a920508..cf43b2fc4 100644
--- a/lib/mesa/src/amd/vulkan/radv_meta_blit.c
+++ b/lib/mesa/src/amd/vulkan/radv_meta_blit.c
@@ -620,8 +620,8 @@ void radv_CmdBlitImage(
VkRect2D dest_box;
dest_box.offset.x = MIN2(dst_x0, dst_x1);
dest_box.offset.y = MIN2(dst_y0, dst_y1);
- dest_box.extent.width = abs(dst_x1 - dst_x0);
- dest_box.extent.height = abs(dst_y1 - dst_y0);
+ dest_box.extent.width = dst_x1 - dst_x0;
+ dest_box.extent.height = dst_y1 - dst_y0;
const unsigned num_layers = dst_end - dst_start;
for (unsigned i = 0; i < num_layers; i++) {