mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user