From: Ben Widawsky Date: Wed, 13 Nov 2013 21:28:17 +0000 (-0800) Subject: gem_evict_*: Fix batch lengths, broken on gen8 integration X-Git-Tag: intel-gpu-tools-1.6~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ef6769366222bc1c272336378d802737a5e9026;p=profile%2Fextras%2Fintel-gpu-tools.git gem_evict_*: Fix batch lengths, broken on gen8 integration Signed-off-by: Ben Widawsky --- diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c index f3a17e4..15c4707 100644 --- a/tests/gem_evict_alignment.c +++ b/tests/gem_evict_alignment.c @@ -60,7 +60,9 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int alignme batch[i++] = (XY_SRC_COPY_BLT_CMD | XY_SRC_COPY_BLT_WRITE_ALPHA | - XY_SRC_COPY_BLT_WRITE_RGB); + XY_SRC_COPY_BLT_WRITE_RGB | 6); + if (intel_gen(intel_get_drm_devid(fd)) >= 8) + batch[i - 1] += 2; batch[i++] = (3 << 24) | /* 32 bits */ (0xcc << 16) | /* copy ROP */ WIDTH*4; diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c index 762aef1..41abef7 100644 --- a/tests/gem_evict_everything.c +++ b/tests/gem_evict_everything.c @@ -60,7 +60,9 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int error) batch[i++] = (XY_SRC_COPY_BLT_CMD | XY_SRC_COPY_BLT_WRITE_ALPHA | - XY_SRC_COPY_BLT_WRITE_RGB); + XY_SRC_COPY_BLT_WRITE_RGB | 6); + if (intel_gen(intel_get_drm_devid(fd)) >= 8) + batch[i - 1] += 2; batch[i++] = (3 << 24) | /* 32 bits */ (0xcc << 16) | /* copy ROP */ WIDTH*4;