winsys/svga: Avoid calling drm getparam for max surface size on older kernels
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 20 Feb 2014 13:32:07 +0000 (14:32 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Feb 2014 10:11:21 +0000 (11:11 +0100)
commitf5e681f3fae6b95b76bb068b367f5f96c58073c8
tree7558e383ee59dd16d28db6df2233eca24663120d
parent085f61bd4eb4e75c705cc82ce8c2ecacff6b8383
winsys/svga: Avoid calling drm getparam for max surface size on older kernels

This avoids the kernel driver spewing out errors about the param not being
supported.

Also correct the max surface size used when the kernel does not support the
query.

Reported-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c