drm/vmwgfx: Split GMR2_REMAP commands if they are to large
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 29 Aug 2013 00:32:53 +0000 (02:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Sep 2013 05:09:58 +0000 (22:09 -0700)
commit9c3a5a86636175686a547d6022a50373cc75adbc
treeaff915eb891ad4ff36d161e9a7129f15a4ba6c31
parent6ff96f7340e8a0b7b7e2c40a26bc47fb320e6475
drm/vmwgfx: Split GMR2_REMAP commands if they are to large

commit 6e4dcff3adbf25acb87e74500a58e3c07bdec40f upstream.

This fixes the piglit test texturing/max-texture-size
causing the VM to die due to a too large SVGA command.

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Biran Paul <brianp@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c