vk/gen7: Fix gen of emitted packet in gen7_batch_lri()
authorChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 14:36:28 +0000 (07:36 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 14:36:35 +0000 (07:36 -0700)
Emit GEN7_MI_LOAD_REGISTER_IMM, not the GEN8 version.

src/vulkan/gen7_cmd_buffer.c

index 6eb5d48c039a9deecf46142be2bf8d4f612470aa..d9644e2a06a0b7fbdbf41596eeb6aab0f945a52a 100644 (file)
@@ -387,7 +387,7 @@ gen7_batch_lrm(struct anv_batch *batch,
 static void
 gen7_batch_lri(struct anv_batch *batch, uint32_t reg, uint32_t imm)
 {
-   anv_batch_emit(batch, GEN8_MI_LOAD_REGISTER_IMM,
+   anv_batch_emit(batch, GEN7_MI_LOAD_REGISTER_IMM,
                   .RegisterOffset = reg,
                   .DataDWord = imm);
 }