util/timespec: use unsigned 64 bit integers for nsec values

We added this utility for vulkan where all timeouts are given as
uint64_t values. We can switch from signed to unsigned as this is the
only user and if we ever deal with signed integers somewhere else
we'll have to be careful to use the corresponding
timespec_(add|sub)_msec and always pass absolute values.

v2: Forgot to drop the test calling add_nsec() with a negative number

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Fixes: d2d70c3b ("util: add a timespec helper")
Acked-by: Daniel Stone <daniels@collabora.com>
22 jobs for !1729 with review/vulkan-wayland-acquire-timeout-fix in 15 minutes and 35 seconds (queued for 4 seconds)
detached
Status Name Job ID Coverage
  Containers Build
passed debian #524742

00:00:20

 
  Build+Test
passed meson-arm64 #524751

00:02:26

passed meson-armhf #524750

00:03:07

passed meson-clang #524744

00:05:46

passed meson-clover #524748

00:06:57

passed meson-i386 #524752

00:03:29

passed meson-main #524747

00:10:23

passed meson-swr-glvnd #524743

00:03:05

passed meson-vulkan #524749

00:03:35

passed scons-llvm #524754

00:04:20

passed scons-nollvm #524753

00:02:46

passed scons-swr #524745

00:05:56

passed scons-win64 #524746

00:09:03

 
  Test
passed test-llvmpipe-gles2 1/4 #524755

00:03:37

passed test-llvmpipe-gles2 2/4 #524756

00:02:48

passed test-llvmpipe-gles2 3/4 #524757

00:03:24

passed test-llvmpipe-gles2 4/4 #524758

00:04:19

passed test-softpipe-gles2 1/4 #524759

00:01:33

passed test-softpipe-gles2 2/4 #524760

00:02:13

passed test-softpipe-gles2 3/4 #524761

00:01:28

passed test-softpipe-gles2 4/4 #524762

00:01:33

passed test-softpipe-gles3-limited #524763

00:04:21