From 0395eba20f1e370e584e99dd337b8560cd90ee5e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 29 Sep 2018 10:47:01 +0200 Subject: iris: magic number 36 -> #define --- src/gallium/drivers/iris/iris_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/iris/iris_screen.c') diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index ca670dc8a33..af0790e5edf 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -43,6 +43,7 @@ #include "util/ralloc.h" #include "drm-uapi/i915_drm.h" #include "iris_context.h" +#include "iris_defines.h" #include "iris_pipe.h" #include "iris_resource.h" #include "iris_screen.h" @@ -381,7 +382,7 @@ iris_get_timestamp(struct pipe_screen *pscreen) iris_reg_read(screen->bufmgr, TIMESTAMP | 1, &result); result = iris_timebase_scale(&screen->devinfo, result); - result &= (1ull << 36) - 1; + result &= (1ull << TIMESTAMP_BITS) - 1; return result; } -- cgit v1.2.3