lib: extract get_render_copyfunc

Otherwise we won't update all the tests if we add new render
copyfuncs.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2012-11-29 14:59:57 +01:00
parent d79414f64a
commit 64f669f7a9
5 changed files with 27 additions and 28 deletions
+1 -7
View File
@@ -219,13 +219,7 @@ int main(int argc, char **argv)
/* Strictly only required on architectures with a separate BLT ring,
* but lets stress everybody.
*/
copy = NULL;
if (IS_GEN2(batch->devid))
copy = gen2_render_copyfunc;
else if (IS_GEN3(batch->devid))
copy = gen3_render_copyfunc;
else if (IS_GEN6(batch->devid))
copy = gen6_render_copyfunc;
copy = get_render_copyfunc(batch->devid);
if (drmtest_run_subtest("render") && copy)
fails += check_ring(bufmgr, batch, "render", copy);