diff mbox

[2/2] tests/gem_render_copy: Add option to test resource streamer

Message ID 1399405683-27409-3-git-send-email-abdiel.janulgue@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Abdiel Janulgue May 6, 2014, 7:48 p.m. UTC
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(-)
diff mbox

Patch

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);
 	}