diff options
author | Kenneth Graunke <[email protected]> | 2018-09-29 10:39:39 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | 07ff8c752f667f6fa6d579d56ef15422f52e82a1 (patch) | |
tree | 321c8920067a47efdedcf42bef740af9244fc2cc /src | |
parent | dff174c103146a3bb60f660abe0f6aa5468f8725 (diff) |
iris: 36-bit overflow fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c index 15937a8be8d..6148835e05c 100644 --- a/src/gallium/drivers/iris/iris_query.c +++ b/src/gallium/drivers/iris/iris_query.c @@ -267,7 +267,7 @@ calculate_result_on_cpu(const struct gen_device_info *devinfo, case PIPE_QUERY_TIMESTAMP_DISJOINT: /* The timestamp is the single starting snapshot. */ q->result = iris_timebase_scale(devinfo, q->map->start); - // XXX: 36-bit overflow? + q->result &= (1ull << 36) - 1; break; case PIPE_QUERY_TIME_ELAPSED: q->result = iris_raw_timestamp_delta(q->map->start, q->map->end); |