drm/vmwgfx: Fix corner case screen target management
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 29 Jun 2016 20:37:35 +0000 (13:37 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 1 Jul 2016 17:47:51 +0000 (10:47 -0700)
commitbeca4cf55323147ca9c8a98de1871be6e4fe8f34
tree105f2911895cea4b1bbab84bdd03f972c7250b3a
parentd5f1a291e32309324a8c481ed84b5c118d1360ea
drm/vmwgfx: Fix corner case screen target management

When the surface backing a framebuffer doesn't match the framebuffer's
dimensions, the screen target code would test the framebuffer dimensions
rather than the surface dimensions when deciding whether to bind the
surface as a screen target directly. This causes a screen target -
surface dimension mismatch and a subsequent device error.

Fix this by testing against the surface dimension.

v2: Fix review comments by Sinclair Yeh.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Cc: <stable@vger.kernel.org>
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
This page took 0.024515 seconds and 5 git commands to generate.