diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-11-27 02:39:14 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-11-27 02:39:14 +0100 |
commit | 7af82bb0e5af670add67996ff8d6e890b9622a0c (patch) | |
tree | 8ebe8816d4bf592ff0cfd4875d6ea0b4a61bde57 /tests/gem_hangcheck_forcewake.c | |
parent | 66b88b615cb5b1f483eb86d4623a5df0bbb2c1bf (diff) |
tests: implement snb+ XY_SETUP_CLIP_BLT workaround
Better safe than sorry.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_hangcheck_forcewake.c')
-rw-r--r-- | tests/gem_hangcheck_forcewake.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gem_hangcheck_forcewake.c b/tests/gem_hangcheck_forcewake.c index 9aec90ed..96a30fef 100644 --- a/tests/gem_hangcheck_forcewake.c +++ b/tests/gem_hangcheck_forcewake.c @@ -102,6 +102,14 @@ int main(int argc, char **argv) OUT_BATCH(pitch); OUT_RELOC_FENCED(bo, I915_GEM_DOMAIN_RENDER, 0, 0); ADVANCE_BATCH(); + + if (IS_GEN6(devid) || IS_GEN7(devid)) { + BEGIN_BATCH(3); + OUT_BATCH(XY_SETUP_CLIP_BLT_CMD); + OUT_BATCH(0); + OUT_BATCH(0); + ADVANCE_BATCH(); + } } printf("waiting\n"); |