summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-09-28 16:45:04 +0200
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commitdff174c103146a3bb60f660abe0f6aa5468f8725 (patch)
treeeab041e3c1f4a5d92516ac10107296b79d713516
parent1d91eba7dcfb37151399b21b419b0bef26a4431a (diff)
iris: Need to | 1 when asking for timestamps
-rw-r--r--src/gallium/drivers/iris/iris_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 658ecc1f591..ca670dc8a33 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -378,7 +378,7 @@ iris_get_timestamp(struct pipe_screen *pscreen)
const unsigned TIMESTAMP = 0x2358;
uint64_t result;
- iris_reg_read(screen->bufmgr, TIMESTAMP, &result);
+ iris_reg_read(screen->bufmgr, TIMESTAMP | 1, &result);
result = iris_timebase_scale(&screen->devinfo, result);
result &= (1ull << 36) - 1;