radv: Don't take absolute value of unsigned type.
From Oschowa c2a778ef0f1720f9fb28afd40a791488648218d0 in mainline mesa reduces clang warnings
This commit is contained in:
parent
d9428e1972
commit
952b4b274c
@ -620,8 +620,8 @@ void radv_CmdBlitImage(
|
|||||||
VkRect2D dest_box;
|
VkRect2D dest_box;
|
||||||
dest_box.offset.x = MIN2(dst_x0, dst_x1);
|
dest_box.offset.x = MIN2(dst_x0, dst_x1);
|
||||||
dest_box.offset.y = MIN2(dst_y0, dst_y1);
|
dest_box.offset.y = MIN2(dst_y0, dst_y1);
|
||||||
dest_box.extent.width = abs(dst_x1 - dst_x0);
|
dest_box.extent.width = dst_x1 - dst_x0;
|
||||||
dest_box.extent.height = abs(dst_y1 - dst_y0);
|
dest_box.extent.height = dst_y1 - dst_y0;
|
||||||
|
|
||||||
const unsigned num_layers = dst_end - dst_start;
|
const unsigned num_layers = dst_end - dst_start;
|
||||||
for (unsigned i = 0; i < num_layers; i++) {
|
for (unsigned i = 0; i < num_layers; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user