iris: Need to | 1 when asking for timestamps
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Sep 2018 14:45:04 +0000 (16:45 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_screen.c

index 658ecc1f591efcfcab640f3caf7d694f14ca469e..ca670dc8a335ac2092cecf2d3cce06e2391f48d2 100644 (file)
@@ -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;