diff options
author | Kenneth Graunke <[email protected]> | 2017-03-21 22:42:43 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-04-10 14:31:24 -0700 |
commit | 68cb0c6d92b82609a4bee97dde3af9db26f8fdf9 (patch) | |
tree | 52447cce56ea58014ad8cc03b1d03369df141065 /src/mesa/drivers/dri/i965/intel_bufmgr_priv.h | |
parent | c5cdb0f40574344f1b606fb6978b3714ac82d52a (diff) |
i965/drm: Use Mesa's macros.h instead of duplicating them.
Replace the duplicated macros imported from libdrm:
ARRAY_SIZE, MAX2, ALIGN, STATIC_ASSERT
and remove unused ROUND_UP_TO and ROUND_UP_TO_MB.
Reviewed-by: Chris Wilson <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_bufmgr_priv.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_bufmgr_priv.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_bufmgr_priv.h b/src/mesa/drivers/dri/i965/intel_bufmgr_priv.h index 58c21982001..26ffd18234a 100644 --- a/src/mesa/drivers/dri/i965/intel_bufmgr_priv.h +++ b/src/mesa/drivers/dri/i965/intel_bufmgr_priv.h @@ -285,8 +285,4 @@ struct _drm_bacon_context { struct _drm_bacon_bufmgr *bufmgr; }; -#define ALIGN(value, alignment) ((value + alignment - 1) & ~(alignment - 1)) -#define ROUND_UP_TO(x, y) (((x) + (y) - 1) / (y) * (y)) -#define ROUND_UP_TO_MB(x) ROUND_UP_TO((x), 1024*1024) - #endif /* INTEL_BUFMGR_PRIV_H */ |