OSDN Git Service

drm/vmwgfx: Fixed topology boundary checking for Screen Targets
authorSinclair Yeh <syeh@vmware.com>
Thu, 16 Jul 2015 17:49:13 +0000 (10:49 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Aug 2015 17:05:34 +0000 (10:05 -0700)
commit65ade7d34bb6436104f1fdcce899bd81707da2e1
treebbf552164361dcf185535e681fd627443fbb3c64
parent6a5278ee34e7fd4b051fd107a94a099778458d8c
drm/vmwgfx: Fixed topology boundary checking for Screen Targets

For a Screen Target capable display device, the display topology is
limited by SVGA_REG_MAX_PRIMARY_BOUNDING_BOX_MEM.  Two values are
checked against this limit:
  1.  Size of the bounding box enclosing all the displays, and
  2.  Size of the total number of displays, e.g. framebuffers

The limitations above mean we do not have exact max width and
height for the topology.  The best current option is to set those to
the maximum texture width/height.

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