drm/i915/gvt: add resolution definition for vGPU type
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 24 Feb 2017 02:58:21 +0000 (10:58 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 24 Feb 2017 05:25:18 +0000 (13:25 +0800)
commitd1a513be1f0a25f094e1577d059b9aebaa279bb2
tree319d3a67cd458bc138a3082721bff97df1703814
parentbca5609fcc401b0055a3c01ecc33c5f6fb67af7b
drm/i915/gvt: add resolution definition for vGPU type

This assigns resolution definition for each vGPU type. For smaller
resource type we should limit max resolution, so e.g limit to 1024x768
for 64M type, others are still default to 1920x1200.

v2: Fix for actual 1920x1200 resolution

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/display.h
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/vgpu.c