From 9cff0a84308723d9790c6365c0d4b1c107794995 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Thu, 7 Jul 2011 09:21:56 +0200 Subject: vmwgfx: Various acceleration fixes. Signed-off-by: Thomas Hellstrom --- vmwgfx/vmwgfx_xa_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vmwgfx/vmwgfx_xa_surface.c') diff --git a/vmwgfx/vmwgfx_xa_surface.c b/vmwgfx/vmwgfx_xa_surface.c index 6c4ab85..7542413 100644 --- a/vmwgfx/vmwgfx_xa_surface.c +++ b/vmwgfx/vmwgfx_xa_surface.c @@ -110,7 +110,7 @@ vmwgfx_old_format_compatible(enum xa_formats format, enum xa_formats old_format) { return (format == old_format || - (xa_format_type(old_format) == xa_format_type(old_format) && + (xa_format_type(format) == xa_format_type(old_format) && xa_format_a(format) <= xa_format_a(old_format) && xa_format_r(format) == xa_format_r(old_format) && xa_format_g(format) == xa_format_g(old_format) && @@ -133,7 +133,6 @@ vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap, /* * Check if we can reuse old hardware format. */ - if (vpix->hw) { enum xa_formats old_format = xa_surface_format(vpix->hw); @@ -150,6 +149,7 @@ vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap, vpix->staging_format = format; vpix->staging_remove_flags = 0; vpix->staging_add_flags = XA_FLAG_RENDER_TARGET; + return TRUE; } -- cgit v1.2.3