tests/pm_rpm: refactor the modesetting code
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 8 Aug 2014 14:24:34 +0000 (11:24 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 8 Aug 2014 20:02:43 +0000 (17:02 -0300)
commit5a06d361b5941466ef1941bb6010f179dbb6f66e
treebd463548c4cff4355445bf1bd1d1e911953ed5ee
parent5a978121d36ceb0ac6b372475d03c98a8db72e7e
tests/pm_rpm: refactor the modesetting code

Refactor the code so the params for the modesets are always stored and
don't have to be recomputed every time. With this, we can get rid of
our FB caching structures, and we now also allow the subtests that do
special modesets to reuse the parameters used on the default modesets,
just changing whatever they want.

The biggest win here is that the test case subfunctions get smaller
and simpler to read and write.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pm_rpm.c