diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-16 08:17:00 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-16 08:19:08 +0100 |
commit | 1244fc6b9bc56cdf1584e919230796082b93f371 (patch) | |
tree | 0b2afe0bccab75d78504f8eb308fadbfb314f51c | |
parent | 137877f16b7d026fa1bc17797604e17de2af7e92 (diff) |
igt/pm_rps: Fix STORE_DWORD for pre-gen8
gen8 actually changed the command layout, not just extended the
relocation value. Oh well.
References: https://bugs.freedesktop.org/show_bug.cgi?id=83915
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/pm_rps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c index d0d7d8ec3..101f65d8c 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -178,18 +178,17 @@ static void emit_store_dword_imm(uint32_t val) if (!lh.has_ppgtt) cmd |= MI_MEM_VIRTUAL; - BEGIN_BATCH(3, 1); + BEGIN_BATCH(4, 0); /* just ignore the reloc we emit and count dwords */ OUT_BATCH(cmd); if (batch->gen >= 8) { OUT_RELOC(lh.target_buffer, I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION, 0); - OUT_BATCH(val); } else { OUT_BATCH(0); /* reserved */ OUT_RELOC(lh.target_buffer, I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION, 0); - OUT_BATCH(val); } + OUT_BATCH(val); ADVANCE_BATCH(); } |