@@ -131,14 +131,19 @@ int main(int argc, char **argv)
int opt;
int opt_dump_png = false;
int opt_dump_aub = igt_aub_dump_enabled();
+ int opt_use_rs = false;
igt_simple_init();
- while ((opt = getopt(argc, argv, "d")) != -1) {
+ while ((opt = getopt(argc, argv, "d:r")) != -1) {
switch (opt) {
case 'd':
opt_dump_png = true;
break;
+ case 'r':
+ printf("Use resource streamer\n");
+ opt_use_rs = true;
+ break;
default:
break;
}
@@ -156,6 +161,7 @@ int main(int argc, char **argv)
"no render-copy function\n");
batch = intel_batchbuffer_alloc(data.bufmgr, data.devid);
+ batch->use_resource_streamer = opt_use_rs;
igt_assert(batch);
}
Add option in basic test for the render_copy to test and toggle hw-generated binding tables feature. Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> --- tests/gem_render_copy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)