Enable directrendering and always-swap

This commit is contained in:
drago01 2009-08-07 12:45:24 +00:00
parent d8f97bbdfa
commit e59aa8e766
2 changed files with 11 additions and 7 deletions

View File

@ -2,18 +2,18 @@
function runCompiz() { function runCompiz() {
gtk-window-decorator & gtk-window-decorator &
exec compiz --ignore-desktop-hints glib gconf gnomecompat $@ exec compiz --ignore-desktop-hints --always-swap glib gconf gnomecompat $@
} }
DIRECT=`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3` DIRECT=`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`
ISSW=`glxinfo | grep "Software Rasterizer" -c` ISSW=`glxinfo | grep "Software Rasterizer" -c`
# Disabled for now, does not work as expected # Try with direct rendering
#HAVETFP=`glxinfo | grep texture_from_pixmap -c` HAVETFP=`glxinfo | grep texture_from_pixmap -c`
#if ( [ $HAVE3D == "Yes" ] && [ $HAVETFP -gt 2 ] ); then if ( [ $HAVE3D == "Yes" ] && [ $HAVETFP -gt 2 ] ); then
# runCompiz $@ runCompiz $@
#fi fi
# Try again with indirect rendering # Try again with indirect rendering
export LIBGL_ALWAYS_INDIRECT=1 export LIBGL_ALWAYS_INDIRECT=1

View File

@ -14,7 +14,7 @@ URL: http://www.go-compiz.org
License: GPLv2+ and LGPLv2+ and MIT License: GPLv2+ and LGPLv2+ and MIT
Group: User Interface/Desktops Group: User Interface/Desktops
Version: 0.8.2 Version: 0.8.2
Release: 9%{?dist} Release: 10%{?dist}
Summary: OpenGL window and compositing manager Summary: OpenGL window and compositing manager
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -364,6 +364,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Fri Aug 07 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-10
- Enable direct rendering and always-swap by default
- Tearing free compiz for INTEL cards ;)
* Sat Aug 01 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-9 * Sat Aug 01 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-9
- Fix build - Fix build