drm/i915/gvt: Use consist max display pipe numbers as i915 definition
authorColin Xu <colin.xu@intel.com>
Thu, 14 Feb 2019 04:56:33 +0000 (12:56 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 18 Feb 2019 09:19:11 +0000 (17:19 +0800)
commit2c7f9a4df9def07867087a520bc32169e2eec9f8
treeb6c782e3494f3e76ac1433e790e8d6c72b82bcba
parent39c68e87bc50a71bcfe93582d9b0673ef30db418
drm/i915/gvt: Use consist max display pipe numbers as i915 definition

GVT implements a homogeneous vGPU as host GPU so max vGPU display pipes
can't exceed HW. The inconsistency definition has potential risks which
could cause array indexing overflow.

Remove the unnecessary define of INTEL_GVT_MAX_PIPE and align with i915.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h