Chris Wilson 7f9d14aa51 overlay: Negative modulus
Don't use a negative index into the array if the desired element is
negative, just wrap around properly into the ring for the chart.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-21 13:56:04 +00:00
..
2013-08-17 11:21:51 +01:00
2014-12-21 13:56:04 +00:00
2013-08-20 21:39:27 +01:00
2013-08-29 13:33:58 +01:00
2013-08-20 21:39:27 +01:00
2013-08-17 11:21:51 +01:00
2013-08-20 21:39:27 +01:00
2013-08-20 21:39:27 +01:00
2013-08-27 12:31:13 +01:00
2013-08-27 15:23:10 +01:00
2013-08-27 12:31:13 +01:00
2013-08-27 12:31:13 +01:00
2013-08-27 15:23:10 +01:00
2013-08-27 15:23:10 +01:00
2013-08-17 11:21:51 +01:00

This is a simple overlay showing current GPU activity. An asynchronous
overlay is used, rendered by the CPU to avoid introducing any extra work
on the GPU that we wish to monitor.

The x11-overlay backend requires xf86-video-intel 2.21.15 or later, with
SNA enabled.

As it requires access to debug information, it needs to be run as root.