diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-11-13 13:28:17 -0800 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-11-13 13:30:26 -0800 |
commit | 9ef6769366222bc1c272336378d802737a5e9026 (patch) | |
tree | edfe88bd5b50133413e6db914eb8193e86c4de0e /tests/gem_evict_alignment.c | |
parent | 1ff7427578eaf4fe472eb5424343e53ed283450e (diff) |
gem_evict_*: Fix batch lengths, broken on gen8 integration
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/gem_evict_alignment.c')
-rw-r--r-- | tests/gem_evict_alignment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c index f3a17e42..15c4707d 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; |