diff options
author | Thierry Reding <treding@nvidia.com> | 2015-12-09 18:37:39 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-12-18 17:43:40 +0000 |
commit | 1ec3c44bdd38051d870f64d0b2cc7dbd59760386 (patch) | |
tree | 16736bbd48e66bee6592f10a8ec358d57d51e141 /tests/proptest/proptest.c | |
parent | 15d90ef3504128a276923db840af1410ca255647 (diff) | |
download | libdrm-1ec3c44bdd38051d870f64d0b2cc7dbd59760386.tar.gz libdrm-1ec3c44bdd38051d870f64d0b2cc7dbd59760386.tar.bz2 libdrm-1ec3c44bdd38051d870f64d0b2cc7dbd59760386.zip |
tests: Split helpers into library
Some of the helpers, such as the pattern drawing helpers or the format
lookup helpers, have potential to be reused. Move them into a separate
library to make it easier to share them.
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/proptest/proptest.c')
-rw-r--r-- | tests/proptest/proptest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c index b9296bdb..b6e00cfc 100644 --- a/tests/proptest/proptest.c +++ b/tests/proptest/proptest.c @@ -35,7 +35,8 @@ #include "xf86drm.h" #include "xf86drmMode.h" -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#include "util/common.h" + static inline int64_t U642I64(uint64_t val) { return (int64_t)*((int64_t *)&val); |