summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_screen.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-09-29 10:47:01 +0200
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit0395eba20f1e370e584e99dd337b8560cd90ee5e (patch)
tree41d88051aee2b9cb37c4290f071572f546efe981 /src/gallium/drivers/iris/iris_screen.c
parent57f8a623c522e0f39428568807946469b4e6ba1f (diff)
iris: magic number 36 -> #define
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r--src/gallium/drivers/iris/iris_screen.c3
1 files changed, 2 insertions, 1 deletions
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;
}