diff options
| author | Damien Lespiau <damien.lespiau@intel.com> | 2014-03-03 21:31:44 +0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-06 00:30:35 +0400 |
| commit | 8cc87b7549969e532317077d325233779f8b96b6 (patch) | |
| tree | 14071f62c54a75cc2d6ee5c7d515799e4d5bfac6 /tools/perf/scripts/python | |
| parent | 8285222c487b61c48b9b955b82598544c3c06050 (diff) | |
| download | linux-8cc87b7549969e532317077d325233779f8b96b6.tar.xz | |
drm/i915: Use a pipe variable to cycle through the pipes
I recently fumbled a patch because I wrote twice num_sprites[i], and it
was the right thing to do in only 50% of the cases.
This patch ensures I need to write num_sprites[pipe], ie it should be
self-documented that it's per-pipe number of sprites without having to
look at what is 'i' this time around.
It's all a lame excuse, but it does make it harder to redo the same
mistake.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
