drm/i915: Change SRM, LRM instructions to use correct length
authorArun Siluvery <arun.siluvery@linux.intel.com>
Tue, 4 Aug 2015 15:22:20 +0000 (16:22 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Aug 2015 06:44:41 +0000 (08:44 +0200)
commitf1afe24f0e736b9d7f2275e2b1504af3fe612f2a
treede9152cf1857398f7036ef66dfccbb1d53d21b58
parentcff4f55bf4fb1e32483885bf0e571847668d9d67
drm/i915: Change SRM, LRM instructions to use correct length

MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM instructions are not really
variable length instructions unlike MI_LOAD_REGISTER_IMM where it expects
(reg, addr) pairs so use fixed length for these instructions.

v2: rebase

Cc: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
[danvet: Appease checkpatch as Mika spotted in i915_reg.h - it seems
terminally unhappy about i915_cmd_parser.c so that would be a separate
patch.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_lrc.c