diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-25 13:41:28 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-25 13:43:33 +0100 |
commit | 4e1f2f5957d47458c39b7b32fcdacf2b5411d6b1 (patch) | |
tree | 110e2e682adba865aeca35a17447a95285de0653 /tests/gem_stress.c | |
parent | 719ffef7c39386c453614bc71e1af97904d3671b (diff) |
gem_stress: '-b' option to disable BLT copyfunc
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_stress.c')
-rw-r--r-- | tests/gem_stress.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/gem_stress.c b/tests/gem_stress.c index 46bf4e22..1f228623 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -335,10 +335,16 @@ static void next_copyfunc(int tile) if (tile == options.trace_tile) printf(" using render\n"); copyfunc = render_copyfunc; - } else { + } else if (options.use_blt){ if (tile == options.trace_tile) printf(" using blitter\n"); copyfunc = blitter_copyfunc; + } else if (options.use_render){ + if (tile == options.trace_tile) + printf(" using render\n"); + copyfunc = render_copyfunc; + } else { + copyfunc = cpu_copyfunc; } copyfunc_seq++; @@ -602,6 +608,7 @@ static void parse_options(int argc, char **argv) {"gpu-busy-load", 1, 0, 'g'}, {"buffer-count", 1, 0, 'c'}, {"trace-tile", 1, 0, 't'}, + {"disable-blt", 0, 0, 'b'}, {"disable-render", 0, 0, 'r'}, {"untiled", 0, 0, 'u'}, {"x-tiled", 0, 0, 'x'}, @@ -614,10 +621,11 @@ static void parse_options(int argc, char **argv) options.num_buffers = 0; options.trace_tile = -1; options.use_render = 1; + options.use_blt = 1; options.forced_tiling = -1; options.use_cpu_maps = 0; - while((c = getopt_long(argc, argv, "ds:g:c:t:ruxm", + while((c = getopt_long(argc, argv, "ds:g:c:t:rbuxm", long_options, &option_index)) != -1) { switch(c) { case 'd': @@ -657,6 +665,10 @@ static void parse_options(int argc, char **argv) options.use_render = 0; printf("disabling render copy\n"); break; + case 'b': + options.use_blt = 0; + printf("disabling blt copy\n"); + break; case 'u': options.forced_tiling = I915_TILING_NONE; printf("disabling tiling\n"); |