Commit graph

46 commits

Author SHA1 Message Date
Luboš Luňák
654995d6aa recent intel renderer strings are like
'Mesa DRI Intel(R) 965G GEM 20100328 2010Q1 x86/MMX/SSE2',
having one more field from the end - fix reading version
(bnc#605498)


svn path=/trunk/KDE/kdebase/workspace/; revision=1139202
2010-06-17 16:23:45 +00:00
Fredrik Höglund
bcd8d3f476 - Add an external helper program that initializes GLX and checks if kwin can
use direct rendering.
- Move the LIBGL_ALWAYS_INDIRECT code to CompositingPrefs::detect(), and use
  the external helper program to determine if the variable needs to be set.

svn path=/trunk/KDE/kdebase/workspace/; revision=1096554
2010-02-26 20:47:00 +00:00
Lucas Murray
fd47ff5332 Revert r1082246 as it needs to be done in CompositingPrefs::detect()
to work correctly but as doing it there defeats the purpose of moving
the code to begin with there's no point in moving it.
BUG: 226049

svn path=/trunk/KDE/kdebase/workspace/; revision=1088054
2010-02-10 02:53:33 +00:00
Lucas Murray
2a34e440f5 Change the location where LIBGL_ALWAYS_INDIRECT is set and add some
useful documentation about when it is used and why it is required.

svn path=/trunk/KDE/kdebase/workspace/; revision=1082246
2010-01-30 08:27:24 +00:00
Lucas Murray
8960c552d2 Remove OpenGL driver whitelist; Add protection against crashy glXQuery
functions and share the value with the KCM; Fallback to XRender
compositing if OpenGL fails to work correctly; Rearrange setting order
in options.h slightly and fix variable names

svn path=/trunk/KDE/kdebase/workspace/; revision=1079919
2010-01-25 10:02:08 +00:00
Luboš Luňák
7cef1eadd5 use recommendation from compositing prefs only if there's
no explicit choice (because of driver crashes)


svn path=/trunk/KDE/kdebase/workspace/; revision=1058248
2009-12-04 09:29:08 +00:00
Fredrik Höglund
37fbc26205 Enable OpenGL compositing by default with R600/R700 cards and Mesa 7.7+.
svn path=/trunk/KDE/kdebase/workspace/; revision=1058207
2009-12-04 08:58:54 +00:00
Sebastian Kügler
7d9155171d compositing detection for r300
I've had missing compositing since about a week on my ATI x1300.

After a bit of debugging with the help of fredrikh and mgraesslin, the version string reported seems to be the culprit. I've special-cased the different version string for the R300 driver and it works again now.

The strings my r300 reports are:

DRI R300 Project
Mesa DRI R300 (RV515 7149) 20090101 x86/MMX/SSE2 TCL
1.4 (1.5 Mesa 7.6)

reviewed by fredrikh

kwin people, please have another look, I don't want to break anybody else's setup...

CCMAIL:kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=1058156
2009-12-04 01:13:33 +00:00
Lucas Murray
424d358fd2 Less Krazy warnings please.
svn path=/trunk/KDE/kdebase/workspace/; revision=1042583
2009-10-30 08:10:35 +00:00
Lucas Murray
8a8428e41c Less Krazy warnings please.
svn path=/trunk/KDE/kdebase/workspace/; revision=1042572
2009-10-30 06:51:59 +00:00
Luboš Luňák
747c9b1f3e Detect radeon by using at least "Mesa DRI R", not
just the way too generic "Mesa DRI".


svn path=/trunk/KDE/kdebase/workspace/; revision=980487
2009-06-11 20:58:51 +00:00
Dirk Mueller
329cddf5bd Detect mobil intel chips as intel chips, not ATI
svn path=/trunk/KDE/kdebase/workspace/; revision=980438
2009-06-11 18:53:23 +00:00
Martin Gräßlin
7991f3e99d Ati changed the OpenGL version string. It used to be in the first part, now it is in the second part encapsulated in parenthesis. So new driver versions are now recognized again. Looking forward to the next change.
svn path=/trunk/KDE/kdebase/workspace/; revision=959824
2009-04-27 10:12:12 +00:00
Luboš Luňák
ab6772a8c9 Enable compositing with nvidia by default only for driver 173.14.12 and up,
this rules out GeForce4 and below, but there it's still possible to enable
it explicitly if the user finds it good enough.


svn path=/trunk/KDE/kdebase/workspace/; revision=880710
2008-11-06 09:31:33 +00:00
Enrique Matías Sánchez
f5efd9ca28 SVN_SILENT Fix typos in kdebase
svn path=/trunk/KDE/kdebase/workspace/; revision=875089
2008-10-23 09:31:44 +00:00
Luboš Luňák
ecfaf59014 I forgot to actually enable compositing by default for some cards listed
on the HW techbase page, do so for intel Gxx cards, radeon r200 and fglrx.


svn path=/trunk/KDE/kdebase/workspace/; revision=871764
2008-10-15 14:10:43 +00:00
Luboš Luňák
5a7557fc6f Force OpenGL compositing to be off if OpenGL rendering is done in software
(second X session with Intel).


svn path=/trunk/KDE/kdebase/workspace/; revision=871752
2008-10-15 13:41:53 +00:00
Luboš Luňák
c2ef38b83c Match intel and nvidia more exactly when detecting, and also
enable by default ati cards with fglrx driver or
(only r200 ...?) with radeon driver.


svn path=/trunk/KDE/kdebase/workspace/; revision=864377
2008-09-24 16:36:24 +00:00
Luboš Luňák
cfb0a0584d Compositing enabled by default again where possible.
svn path=/trunk/KDE/kdebase/workspace/; revision=859934
2008-09-11 15:14:45 +00:00
Malcolm Hunter
be582d3a1a Typo fixes
svn path=/trunk/KDE/kdebase/workspace/; revision=798922
2008-04-19 22:36:47 +00:00
Luboš Luňák
6c823ead71 Avoid 'possibly uninitialized' warning.
svn path=/trunk/KDE/kdebase/workspace/; revision=787696
2008-03-19 16:55:07 +00:00
Luboš Luňák
52f86e4a47 The context should probably be first unset from being current,
and also fix a possible leak.


svn path=/trunk/KDE/kdebase/workspace/; revision=764823
2008-01-22 17:04:41 +00:00
Luboš Luňák
d2a2ec2937 Use kwin debug group.
svn path=/trunk/KDE/kdebase/workspace/; revision=762376
2008-01-16 21:58:37 +00:00
Luboš Luňák
7b0b67b988 Change kError's to kDebug as they don't tell the user anything
useful in release builds anyway.


svn path=/trunk/KDE/kdebase/workspace/; revision=761477
2008-01-14 22:16:29 +00:00
Luboš Luňák
4b33f1babc Fix render check.
svn path=/trunk/KDE/kdebase/workspace/; revision=758642
2008-01-08 16:28:43 +00:00
Luboš Luňák
2f1e9eba44 Uncomment code with new i18n strings.
svn path=/trunk/KDE/kdebase/workspace/; revision=758577
2008-01-08 11:26:52 +00:00
Luboš Luňák
5647e4684d Compositing always disabled by default for now.
svn path=/trunk/KDE/kdebase/workspace/; revision=756786
2008-01-03 19:10:44 +00:00
Luboš Luňák
bb433ac40e No longer include config*.h files in installed headers.
Also slightly redo the #define's for effects, now it's:
- #ifdef KWIN_HAVE_COMPOSITING to check whether there's any compositing support at all
- #ifdef KWIN_HAVE_OPENGL_COMPOSITING to check for OpenGL-based compositing
- #ifdef KWIN_HAVE_XRENDER_COMPOSITING the same for XRender
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=749628
2007-12-17 14:14:53 +00:00
Luboš Luňák
01bf6cbb4c License cleanup - add headers where missing, be explicit about GPL
being v2+ (right now it says just GPL, which according to GPL itself
means any GPL). Decoration clients will come later.
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=742302
2007-11-27 19:40:25 +00:00
Luboš Luňák
eb0d793157 Default to SeparateScreenFocus being false, to be consistent with KDE3.
(and e.g. #141997).


svn path=/trunk/KDE/kdebase/workspace/; revision=739693
2007-11-21 15:54:06 +00:00
Rivo Laks
e8dffc8f3a Enable compositing by default on all Intel 900-series cards.
Let's see what happens...

svn path=/trunk/KDE/kdebase/workspace/; revision=736159
2007-11-13 16:20:39 +00:00
Rivo Laks
c4e55307ce Show reason (extensions not available or kwin support disabled at compile time)
when compositing cannot be used.

svn path=/trunk/KDE/kdebase/workspace/; revision=735788
2007-11-12 16:32:25 +00:00
Luboš Luňák
be0bffa238 Fix last commit.
svn path=/trunk/KDE/kdebase/workspace/; revision=731428
2007-10-31 17:21:18 +00:00
Luboš Luňák
d0ee0fa4e4 Not really, although it probably doesn't matter in practice.
svn path=/trunk/KDE/kdebase/workspace/; revision=731423
2007-10-31 17:10:33 +00:00
Luboš Luňák
6c47fc8322 Before destroying a current context, set some other current context (even none).
Fixes crashes with Intel.


svn path=/trunk/KDE/kdebase/workspace/; revision=731410
2007-10-31 16:28:59 +00:00
Luboš Luňák
d51fb87c10 Current nvidia driver no longer has buggy vsync.
svn path=/trunk/KDE/kdebase/workspace/; revision=728472
2007-10-23 12:07:39 +00:00
Luboš Luňák
fef0d1ff29 Detect xgl and whether to use strict binding.
svn path=/trunk/KDE/kdebase/workspace/; revision=726357
2007-10-17 15:37:14 +00:00
Rivo Laks
50bacdcfe3 Don't try to use GLX 1.3 functions when it's not available
svn path=/trunk/KDE/kdebase/workspace/; revision=719170
2007-09-30 14:08:24 +00:00
Rivo Laks
9e7870dea5 Don't try to use glx when it's not available.
Fixes crash when glx is there at compile time but not at runtime.

svn path=/trunk/KDE/kdebase/workspace/; revision=717942
2007-09-27 19:04:18 +00:00
Rivo Laks
ebc378ba91 Enable compositing by default only for Intel cards that are known to work (only 945GM atm)
svn path=/trunk/KDE/kdebase/workspace/; revision=717759
2007-09-27 13:59:58 +00:00
Rivo Laks
68f7504fb0 - Add CompositingPrefs::compositingPossible() to check if compositing is supported at all.
- Use it in setupCompositing()

svn path=/trunk/KDE/kdebase/workspace/; revision=717330
2007-09-26 16:34:08 +00:00
Luboš Luňák
85e46eead6 Check for X errors during detecting OpenGL (don't let whole KWin startup fail
because of it).


svn path=/trunk/KDE/kdebase/workspace/; revision=717267
2007-09-26 13:47:01 +00:00
Luboš Luňák
2c9bee719e Restore original glx context after using the temporary one for detecting,
this avoids visual freeze when reconfiguring.
CCMAIL: rivolaks@hot.ee


svn path=/trunk/KDE/kdebase/workspace/; revision=716819
2007-09-25 10:14:57 +00:00
Rivo Laks
686bffcc49 Apply driver-specific workaround (e.g. disabling vsync) for all driver versions since I don't
know that they are/will be fixed in later versions.

svn path=/trunk/KDE/kdebase/workspace/; revision=715547
2007-09-22 11:19:22 +00:00
Rivo Laks
8439c3be9a VSync and vt switching is still broken in the latest nvidia driver
svn path=/trunk/KDE/kdebase/workspace/; revision=715202
2007-09-21 13:29:55 +00:00
Rivo Laks
59f21e39fe Add automatic driver detection for compositing options.
This is used to set sane defaults and work around possible driver bugs.
Also, if you have a "whitelisted" driver (nvidia >= 96.39 or intel >= 20061017)
  then compositing will be enabled by default for you.

svn path=/trunk/KDE/kdebase/workspace/; revision=714004
2007-09-18 13:59:06 +00:00