diff options
| author | Ville Syrjälä <[email protected]> | 2013-11-06 13:56:27 -0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2013-11-07 17:20:17 +0100 |
| commit | edc08d0a40f7ddab6bf7249e59ecf692d36c7192 (patch) | |
| tree | 68d7e84d0b1f105c1b07356c42c889c9ae3cbd40 /tools/perf/scripts/python/bin | |
| parent | 2325991e021fb0da21d8d08009d1eea78133745a (diff) | |
drm/i915: Fix gen3/4 vblank counter wraparound
When the hardware frame counter reads 0xffffff and we're already past
vblank start, we'd return 0x1000000 as the vblank counter value. Once
we'd cross into the next frame's active portion, the vblank counter
would wrap to 0. So we're reporting two different vblank counter values
for the same frame.
Fix the problem by masking the cooked value by 0xffffff to make sure
the counter wraps already after vblank start.
Signed-off-by: Ville Syrjälä <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Reviewed-by: Imre Deak <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions