summaryrefslogtreecommitdiff
path: root/tests/gem_persistent_relocs.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-16 22:45:14 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-17 00:13:47 +0200
commit195f04c3008c079c8edb762a8907903c264da83c (patch)
treeb776a60bb5a97f63166ef7788d322054c91ab5e8 /tests/gem_persistent_relocs.c
parent31139f6b8fc2d5f0c1623de1cbaf24f8a3d5473d (diff)
tests/gem_persistent_relocs: Tune down the test a bit
Takes too long. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_persistent_relocs.c')
-rw-r--r--tests/gem_persistent_relocs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/gem_persistent_relocs.c b/tests/gem_persistent_relocs.c
index b76d770c..fd0d8552 100644
--- a/tests/gem_persistent_relocs.c
+++ b/tests/gem_persistent_relocs.c
@@ -122,7 +122,7 @@ static void emit_dummy_load(int pitch)
XY_SRC_COPY_BLT_DST_TILED;
}
- for (i = 0; i < 10; i++) {
+ for (i = 0; i < 5; i++) {
BEGIN_BATCH(8);
OUT_BATCH(XY_SRC_COPY_BLT_CMD |
XY_SRC_COPY_BLT_WRITE_ALPHA |
@@ -234,7 +234,8 @@ static void do_test(int fd, bool faulting_reloc)
}
- for (repeat = 0; repeat < 4096/small_pitch; repeat++) {
+ /* repeat must be smaller than 4096/small_pitch */
+ for (repeat = 0; repeat < 8; repeat++) {
for (i = 0; i < NUM_TARGET_BOS; i++) {
uint32_t data[2] = {
(repeat << 16) | 0,
@@ -252,7 +253,8 @@ static void do_test(int fd, bool faulting_reloc)
/* Only check at the end to avoid unnecessarily synchronous behaviour. */
for (i = 0; i < NUM_TARGET_BOS; i++) {
- for (repeat = 0; repeat < 4096/small_pitch; repeat++) {
+ /* repeat must be smaller than 4096/small_pitch */
+ for (repeat = 0; repeat < 8; repeat++) {
drm_intel_bo_get_subdata(pc_target_bo[i],
repeat*small_pitch, 4, &test);
if (test != 0xdeadbeef) {