mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 15:26:21 +00:00
gem_stress: option to disable render copyfunc check
Too noisy - which is an another way of saying too broken :( Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
5b253cee37
commit
1007956680
@ -655,6 +655,8 @@ static void parse_options(int argc, char **argv)
|
|||||||
{"apply-duct-tape", 0, 0, DUCTAPE},
|
{"apply-duct-tape", 0, 0, DUCTAPE},
|
||||||
#define TILESZ 0xdead0002
|
#define TILESZ 0xdead0002
|
||||||
{"tile-size", 1, 0, TILESZ},
|
{"tile-size", 1, 0, TILESZ},
|
||||||
|
#define CHCK_RENDER 0xdead0003
|
||||||
|
{"check-render-cpyfn", 0, 0, CHCK_RENDER},
|
||||||
};
|
};
|
||||||
|
|
||||||
options.scratch_buf_size = 256*4096;
|
options.scratch_buf_size = 256*4096;
|
||||||
@ -671,6 +673,7 @@ static void parse_options(int argc, char **argv)
|
|||||||
options.ducttape = 0;
|
options.ducttape = 0;
|
||||||
options.tile_size = 16;
|
options.tile_size = 16;
|
||||||
options.tiles_per_buf = options.scratch_buf_size / TILE_BYTES(options.tile_size);
|
options.tiles_per_buf = options.scratch_buf_size / TILE_BYTES(options.tile_size);
|
||||||
|
options.check_render_cpyfn = 0;
|
||||||
|
|
||||||
while((c = getopt_long(argc, argv, "ds:g:c:t:rbuxmo:fp:",
|
while((c = getopt_long(argc, argv, "ds:g:c:t:rbuxmo:fp:",
|
||||||
long_options, &option_index)) != -1) {
|
long_options, &option_index)) != -1) {
|
||||||
@ -755,6 +758,10 @@ static void parse_options(int argc, char **argv)
|
|||||||
sanitize_tiles_per_buf();
|
sanitize_tiles_per_buf();
|
||||||
printf("til size %i\n", options.tile_size);
|
printf("til size %i\n", options.tile_size);
|
||||||
break;
|
break;
|
||||||
|
case CHCK_RENDER:
|
||||||
|
options.check_render_cpyfn = 1;
|
||||||
|
printf("checking render copy function\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf("unkown command options\n");
|
printf("unkown command options\n");
|
||||||
break;
|
break;
|
||||||
@ -821,6 +828,9 @@ static void check_render_copyfunc(void)
|
|||||||
uint32_t *ptr;
|
uint32_t *ptr;
|
||||||
int i, j, pass;
|
int i, j, pass;
|
||||||
|
|
||||||
|
if (!options.check_render_cpyfn)
|
||||||
|
return;
|
||||||
|
|
||||||
init_buffer(&src, options.scratch_buf_size);
|
init_buffer(&src, options.scratch_buf_size);
|
||||||
init_buffer(&dst, options.scratch_buf_size);
|
init_buffer(&dst, options.scratch_buf_size);
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ struct option_struct {
|
|||||||
int tiles_per_buf;
|
int tiles_per_buf;
|
||||||
int ducttape;
|
int ducttape;
|
||||||
int tile_size;
|
int tile_size;
|
||||||
|
int check_render_cpyfn;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct option_struct options;
|
extern struct option_struct options;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user