diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-17 19:16:39 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-25 16:05:32 +0300 |
commit | 1382e56627031315e4edb9e856848853b7d8079d (patch) | |
tree | f2f5894f8b5fac481482bc66b316b7def82e955f /tests/i915_query.c | |
parent | 94540e34bddfb728ac5acad96453dee666136945 (diff) |
lib: Add DIV_ROUND_UP()
Add DIV_ROUND_UP() and replace some hand rolled versions with it.
v2: Drop the duplicate from gem_render_copy() (Paulo)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests/i915_query.c')
-rw-r--r-- | tests/i915_query.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/i915_query.c b/tests/i915_query.c index c7de8cbd..08aabf94 100644 --- a/tests/i915_query.c +++ b/tests/i915_query.c @@ -242,8 +242,6 @@ static void test_query_topology_unsupported(int fd) igt_assert_eq(item.length, -ENODEV); } -#define DIV_ROUND_UP(val, div) (ALIGN(val, div) / div) - static bool slice_available(const struct drm_i915_query_topology_info *topo_info, int s) |