drm/i915/gvt: correct the ggtt valid bit check in pipe control command
authorYulei Zhang <yulei.zhang@intel.com>
Mon, 13 Mar 2017 15:21:27 +0000 (23:21 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Mar 2017 08:46:45 +0000 (16:46 +0800)
commit3f765a341798ebd4e0ece7cce34399a8fd4a7f9f
tree7afd18541fa6799432d07e4a08341068b37f33ed
parent695fbc08d80f93ecca18a1abd8f52c2ab77fdc8d
drm/i915/gvt: correct the ggtt valid bit check in pipe control command

GGTT valid bit in pipe control command move to DWORD1 after SNB, so
change the valid check code correspondingly.

v2:
per Zhenyu's comment, replace the bit check with MACRO define
PIPE_CONTROL_GLOBAL_GTT_IVB

Signed-off-by: Yulei Zhang <yulei.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c