drm/vmwgfx: Explicityly track screen target width and height
authorSinclair Yeh <syeh@vmware.com>
Thu, 23 Mar 2017 21:40:04 +0000 (14:40 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 22:21:14 +0000 (15:21 -0700)
commit9aa8dcab7e44288c6fd620c5b831d2ca535866c2
tree106fa9b8d158d6cdcabea3a7263c8d4b981ee420
parentf7c478be0abb5f6db5dfa13bb8118628817b9afe
drm/vmwgfx: Explicityly track screen target width and height

We can no longer make the assumption that vmw_stdu_update_st() will
be called when there's a valid display surface attached.  So
instead of using display_srf for width and height, make a record of
these paremeters when the screen target is first defined.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c