summaryrefslogtreecommitdiff
path: root/tests/gem_evict_everything.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-11-13 13:28:17 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2013-11-13 13:30:26 -0800
commit9ef6769366222bc1c272336378d802737a5e9026 (patch)
treeedfe88bd5b50133413e6db914eb8193e86c4de0e /tests/gem_evict_everything.c
parent1ff7427578eaf4fe472eb5424343e53ed283450e (diff)
gem_evict_*: Fix batch lengths, broken on gen8 integration
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/gem_evict_everything.c')
-rw-r--r--tests/gem_evict_everything.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c
index 762aef1e..41abef78 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;