From da29c648051208b98704860f851564a80bd3b123 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 22 Nov 2011 21:06:24 +0100 Subject: vmwgfx: Pre-init fixes A bunch of fixes that makes the fallback from vmwgfx to vmwlegacy easier. 1) Allow only 16 and 24 bit depths with vmwgfx. We may revisit this later. 2) Try to reclaim some resources if pre_init fails. 3) Print error messages so the user understands what happens on fallback. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- vmwgfx/vmwgfx_drmi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vmwgfx/vmwgfx_drmi.h') diff --git a/vmwgfx/vmwgfx_drmi.h b/vmwgfx/vmwgfx_drmi.h index 11abf25..2435009 100644 --- a/vmwgfx/vmwgfx_drmi.h +++ b/vmwgfx/vmwgfx_drmi.h @@ -82,4 +82,6 @@ vmwgfx_max_fb_size(int drm_fd, size_t *size); int vmwgfx_update_gui_layout(int drm_fd, unsigned int num_rects, struct drm_vmw_rect *rects); +int +vmwgfx_get_param(int drm_fd, uint32_t param, uint64_t *out); #endif -- cgit v1.2.3