Paulo Zanoni 9113c9aa9b lib/igt_draw: break if we already wrote every pixel
Due to the nature of accessing a tiled buffer in an untiled way, we
used to loop through the whole buffer all the time. Add a small
mechanism to just break in case we know we already wrote every pixel
we should have written.

On kms_frontbuffer_tracknig/fbc-2p-primscrn-pri-shrfb-draw-pwrite
(with a 3200x1800 primary screen and a 1920x1080 secondary screen), I
could reduce the runtime from ~7.53s to ~6.01s.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2015-08-14 15:28:27 -03:00
..
2014-07-23 16:43:05 +01:00
2015-04-22 18:00:42 +01:00
2014-12-04 10:17:16 +08:00
2015-07-20 18:13:37 +01:00
2015-07-20 18:13:37 +01:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-07-02 08:17:17 +01:00
2015-08-12 14:46:46 +02:00
2015-08-12 14:46:46 +02:00
2015-08-05 17:30:58 -03:00
2015-07-02 08:17:17 +01:00
2015-04-14 17:44:34 +01:00
2015-02-25 16:59:22 +00:00
2015-07-14 12:52:09 -03:00
2015-04-16 16:49:46 +03:00
2015-07-02 08:17:17 +01:00
2015-07-02 08:17:17 +01:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00