diff options
author | Hang Yuan <hang.yuan@linux.intel.com> | 2019-01-30 13:25:52 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-01-31 06:26:48 +0300 |
commit | 49220789617bdc439c95146eb94529c0fcf01043 (patch) | |
tree | aee2f1e6c2dcece711ae94458a2c26b8bb5da017 /drivers/gpu/drm/i915/gvt/display.c | |
parent | 2e679d48f38c378650db403b4ba2248adf0691b2 (diff) | |
download | linux-49220789617bdc439c95146eb94529c0fcf01043.tar.xz |
drm/i915/gvt: add functions to get default resolution
These functions will get default resolution according to vgpu type.
Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/display.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/display.c b/drivers/gpu/drm/i915/gvt/display.c index 4f25b6b7728e..6a86faccbe3f 100644 --- a/drivers/gpu/drm/i915/gvt/display.c +++ b/drivers/gpu/drm/i915/gvt/display.c @@ -342,6 +342,7 @@ static int setup_virtual_dp_monitor(struct intel_vgpu *vgpu, int port_num, port->dpcd->data_valid = true; port->dpcd->data[DPCD_SINK_COUNT] = 0x1; port->type = type; + port->id = resolution; emulate_monitor_status_change(vgpu); |