[Intel-gfx] [PATCH 2/2] tests/gem_render_copy: Add option to test resource streamer
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Tue May 6 21:48:03 CEST 2014
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 at linux.intel.com>
---
tests/gem_render_copy.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c
index 331b7ce..c9dfba0 100644
--- a/tests/gem_render_copy.c
+++ b/tests/gem_render_copy.c
@@ -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);
}
--
1.7.9.5
More information about the Intel-gfx
mailing list