• Home
  • Raw
  • Download

Lines Matching full:options

120 struct option_struct options = {  variable
158 *x = (tile*options.tile_size) % (buf->stride/sizeof(uint32_t)); in tile2xy()
159 *y = ((tile*options.tile_size) / (buf->stride/sizeof(uint32_t))) * options.tile_size; in tile2xy()
233 for (i = 0; i < options.tile_size; i++) { in cpucpy2d()
234 for (j = 0; j < options.tile_size; j++) { in cpucpy2d()
237 unsigned expect = logical_tile_no*options.tile_size*options.tile_size in cpucpy2d()
238 + i*options.tile_size + j; in cpucpy2d()
241 …t tile %i pos %i, read %i, expected %i, diff %i\n", logical_tile_no, i * options.tile_size + j, tm… in cpucpy2d()
242 igt_fail_on(options.trace_tile >= 0 && options.fail); in cpucpy2d()
249 igt_fail_on(failed && options.fail); in cpucpy2d()
263 if (options.ducttape) in cpu_copyfunc()
266 if (options.use_cpu_maps) { in cpu_copyfunc()
280 uint32_t tmp_tile[options.tile_size*options.tile_size]; in prw_copyfunc()
285 if (options.ducttape) in prw_copyfunc()
289 for (i = 0; i < options.tile_size; i++) { in prw_copyfunc()
292 options.tile_size*sizeof(uint32_t), in prw_copyfunc()
293 tmp_tile + options.tile_size*i); in prw_copyfunc()
296 if (options.use_cpu_maps) in prw_copyfunc()
300 tmp_tile, options.tile_size, 0, 0, logical_tile_no); in prw_copyfunc()
304 for (i = 0; i < options.tile_size; i++) { in prw_copyfunc()
307 options.tile_size*sizeof(uint32_t), in prw_copyfunc()
308 tmp_tile + options.tile_size*i); in prw_copyfunc()
311 if (options.use_cpu_maps) in prw_copyfunc()
314 cpucpy2d(tmp_tile, options.tile_size, 0, 0, in prw_copyfunc()
331 options.tile_size, options.tile_size, in blitter_copyfunc()
368 options.tile_size, options.tile_size, in render_copyfunc()
384 if (tile == options.trace_tile) in next_copyfunc()
390 && options.forced_tiling != I915_TILING_NONE) { in next_copyfunc()
391 if (tile == options.trace_tile) in next_copyfunc()
396 if (tile == options.trace_tile) in next_copyfunc()
400 if (tile == options.trace_tile) in next_copyfunc()
403 } else if (copyfunc_seq % 3 == 0 && options.use_render) { in next_copyfunc()
404 if (tile == options.trace_tile) in next_copyfunc()
407 } else if (options.use_blt){ in next_copyfunc()
408 if (tile == options.trace_tile) in next_copyfunc()
411 } else if (options.use_render){ in next_copyfunc()
412 if (tile == options.trace_tile) in next_copyfunc()
424 uint32_t tmp_tile[options.tile_size*options.tile_size]; in fan_out()
431 buf_idx = tile / options.tiles_per_buf; in fan_out()
432 tile %= options.tiles_per_buf; in fan_out()
436 for (k = 0; k < options.tile_size*options.tile_size; k++) in fan_out()
439 if (options.use_cpu_maps) in fan_out()
442 cpucpy2d(tmp_tile, options.tile_size, 0, 0, in fan_out()
454 uint32_t tmp_tile[options.tile_size*options.tile_size]; in fan_in_and_check()
459 buf_idx = tile / options.tiles_per_buf; in fan_in_and_check()
460 tile %= options.tiles_per_buf; in fan_in_and_check()
464 if (options.use_cpu_maps) in fan_in_and_check()
470 tmp_tile, options.tile_size, 0, 0, in fan_in_and_check()
478 if (igt_buf_height(buf) > options.max_dimension) in sanitize_stride()
479 buf->stride = buf->size / options.max_dimension; in sanitize_stride()
481 if (igt_buf_height(buf) < options.tile_size) in sanitize_stride()
482 buf->stride = buf->size / options.tile_size; in sanitize_stride()
484 if (igt_buf_width(buf) < options.tile_size) in sanitize_stride()
485 buf->stride = options.tile_size * sizeof(uint32_t); in sanitize_stride()
488 igt_assert(igt_buf_width(buf) <= options.max_dimension); in sanitize_stride()
489 igt_assert(igt_buf_height(buf) <= options.max_dimension); in sanitize_stride()
491 igt_assert(igt_buf_width(buf) >= options.tile_size); in sanitize_stride()
492 igt_assert(igt_buf_height(buf) >= options.tile_size); in sanitize_stride()
509 if (options.no_hw) in init_buffer()
512 if (options.use_cpu_maps) in init_buffer()
519 buf->num_tiles = options.tiles_per_buf; in init_buffer()
540 if (current_set == 1 && options.gpu_busy_load == 0) { in init_set()
557 if (options.forced_tiling >= 0) in init_set()
558 buffers[set][i].tiling = options.forced_tiling; in init_set()
580 if (options.trace_tile != -1 && i == options.trace_tile/options.tiles_per_buf) in init_set()
581 …igt_info("changing buffer %i containing tile %i: tiling %i, stride %i\n", i, options.trace_tile, b… in init_set()
602 src_buf_idx = idx / options.tiles_per_buf; in copy_tiles()
603 src_tile = idx % options.tiles_per_buf; in copy_tiles()
608 dst_buf_idx = permutation[idx] / options.tiles_per_buf; in copy_tiles()
609 dst_tile = permutation[idx] % options.tiles_per_buf; in copy_tiles()
614 if (options.trace_tile == i) in copy_tiles()
617 if (options.no_hw) { in copy_tiles()
638 if (options.tiles_per_buf > options.scratch_buf_size / TILE_BYTES(options.tile_size)) in sanitize_tiles_per_buf()
639 options.tiles_per_buf = options.scratch_buf_size / TILE_BYTES(options.tile_size); in sanitize_tiles_per_buf()
648 options.no_hw = 1; in parse_options()
652 options.use_signal_helper = 0; in parse_options()
657 if (tmp < options.tile_size*8192) in parse_options()
658 igt_info("scratch buffer size needs to be at least %i\n", options.tile_size * 8192); in parse_options()
663 options.scratch_buf_size = tmp; in parse_options()
673 gpu_busy_load = options.gpu_busy_load = tmp; in parse_options()
677 options.num_buffers = atoi(optarg); in parse_options()
678 igt_info("buffer count set to %i\n", options.num_buffers); in parse_options()
681 options.trace_tile = atoi(optarg); in parse_options()
682 igt_info("tracing tile %i\n", options.trace_tile); in parse_options()
685 options.use_render = 0; in parse_options()
689 options.use_blt = 0; in parse_options()
693 options.forced_tiling = I915_TILING_NONE; in parse_options()
697 if (options.use_cpu_maps) { in parse_options()
700 options.forced_tiling = I915_TILING_X; in parse_options()
705 options.use_cpu_maps = 1; in parse_options()
706 options.forced_tiling = I915_TILING_NONE; in parse_options()
710 options.total_rounds = atoi(optarg); in parse_options()
711 igt_info("total rounds %i\n", options.total_rounds); in parse_options()
714 options.fail = 0; in parse_options()
718 options.tiles_per_buf = atoi(optarg); in parse_options()
719 igt_info("tiles per buffer %i\n", options.tiles_per_buf); in parse_options()
722 options.ducttape = 0; in parse_options()
726 options.tile_size = atoi(optarg); in parse_options()
728 igt_info("til size %i\n", options.tile_size); in parse_options()
731 options.check_render_cpyfn = 1; in parse_options()
739 options.max_dimension = 16*1024; in parse_options()
740 if (options.use_render) { in parse_options()
742 options.max_dimension = 2048; in parse_options()
744 options.max_dimension = 8192; in parse_options()
746 igt_info("Limiting buffer to %dx%d\n", options.max_dimension, options.max_dimension); in parse_options()
756 if (options.num_buffers == 0) { in init()
759 num_buffers = 2 * tmp / options.scratch_buf_size / 3; in init()
763 num_buffers = options.num_buffers; in init()
773 if (options.forced_tiling >= 0) in init()
774 gem_set_tiling(drm_fd, busy_bo->handle, options.forced_tiling, 4096); in init()
777 init_buffer(&buffers[0][i], options.scratch_buf_size); in init()
778 init_buffer(&buffers[1][i], options.scratch_buf_size); in init()
794 if (!options.check_render_cpyfn) in check_render_copyfunc()
797 init_buffer(&src, options.scratch_buf_size); in check_render_copyfunc()
798 init_buffer(&dst, options.scratch_buf_size); in check_render_copyfunc()
801 int sx = random() % (igt_buf_width(&src)-options.tile_size); in check_render_copyfunc()
802 int sy = random() % (igt_buf_height(&src)-options.tile_size); in check_render_copyfunc()
803 int dx = random() % (igt_buf_width(&dst)-options.tile_size); in check_render_copyfunc()
804 int dy = random() % (igt_buf_height(&dst)-options.tile_size); in check_render_copyfunc()
806 if (options.use_cpu_maps) in check_render_copyfunc()
809 memset(src.data, 0xff, options.scratch_buf_size); in check_render_copyfunc()
810 for (j = 0; j < options.tile_size; j++) { in check_render_copyfunc()
812 for (i = 0; i < options.tile_size; i++) in check_render_copyfunc()
813 ptr[i] = j * options.tile_size + i; in check_render_copyfunc()
818 if (options.use_cpu_maps) in check_render_copyfunc()
821 for (j = 0; j < options.tile_size; j++) { in check_render_copyfunc()
823 for (i = 0; i < options.tile_size; i++) in check_render_copyfunc()
824 if (ptr[i] != j * options.tile_size + i) { in check_render_copyfunc()
825 … copyfunc mismatch at (%d, %d): found %d, expected %d\n", i, j, ptr[i], j * options.tile_size + i); in check_render_copyfunc()
862 if (options.use_signal_helper)
878 for (i = 0; i < options.total_rounds; i++) {