tests: Add a quick variant to the gem_storedw_* tests
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 13 Feb 2013 16:29:02 +0000 (16:29 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 Feb 2013 17:09:11 +0000 (18:09 +0100)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_storedw_batches_loop.c
tests/gem_storedw_loop_blt.c
tests/gem_storedw_loop_bsd.c
tests/gem_storedw_loop_render.c

index 48490be..86c3469 100644 (file)
@@ -60,7 +60,7 @@ store_dword_loop(int divider)
        if (!has_ppgtt)
                cmd |= MI_MEM_VIRTUAL;
 
-       for (i = 0; i < 0x80000; i++) {
+       for (i = 0; i < SLOW_QUICK(0x80000, 0x10); i++) {
                cmd_bo = drm_intel_bo_alloc(bufmgr, "cmd bo", 4096, 4096);
                if (!cmd_bo) {
                        fprintf(stderr, "failed to alloc cmd bo\n");
index edf5057..cacae3a 100644 (file)
@@ -63,7 +63,7 @@ store_dword_loop(int divider)
        if (!has_ppgtt)
                cmd |= MI_MEM_VIRTUAL;
 
-       for (i = 0; i < 0x100000; i++) {
+       for (i = 0; i < SLOW_QUICK(0x100000, 0x10); i++) {
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */
index 8d40d35..232c3a6 100644 (file)
@@ -63,7 +63,7 @@ store_dword_loop(int divider)
        if (!has_ppgtt)
                cmd |= MI_MEM_VIRTUAL;
 
-       for (i = 0; i < 0x100000; i++) {
+       for (i = 0; i < SLOW_QUICK(0x100000, 0x10); i++) {
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */
index 2309432..fe09834 100644 (file)
@@ -63,7 +63,7 @@ store_dword_loop(int divider)
        if (!has_ppgtt)
                cmd |= MI_MEM_VIRTUAL;
 
-       for (i = 0; i < 0x100000; i++) {
+       for (i = 0; i < SLOW_QUICK(0x100000, 0x10); i++) {
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */