]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit875a553f6d65d6369c55412734a86208190fbda3
tree106fa9b8d158d6cdcabea3a7263c8d4b981ee420
parenta240fcc10acbb9fad407eae4371ed69dd8633db0
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