Keith Packard
6a870992d8
xf86XVFillKeyHelper assumed root clip never changed.
...
When the root window changed size, xf86XVFillKeyHelper would not revalidate
the GC, leaving the clip at the old size causing lossage (and possibly
memory corruption if the screen and frame buffer shrank).
Fixed by just using a scratch GC; saving memory, eliminating bugs and
shrinking the code.
2007-05-25 20:33:18 -07:00
Luo Jie
3c982bc1a4
Reinstate an apparently mis-deleted ';' from a for loop with no body.
...
Fixes an error returning "No core keyboard" with multiple keyboards.
2007-05-24 11:30:31 -07:00
Luo Jie
4d7469f75f
Fix a typo in using memcpy in xwin.
2007-05-24 11:30:27 -07:00
Luo Jie
0b98845046
Fix os/utils.c compile with mingw.
2007-05-24 11:30:22 -07:00
Luo Jie
1f48995d66
Fix build of composite, dix, and randr when Xinerama is disabled.
2007-05-24 11:20:59 -07:00
Eric Anholt
8f98be7db3
Fix bswap detection on BSD (mis-added '_' in function names).
2007-05-24 11:20:59 -07:00
Matthias Drochner
9616a04285
Fix build on NetBSD/amd64.
2007-05-24 11:20:59 -07:00
Michel Dänzer
649e7f82d8
Consolidate portPriv->pDraw assignments into xf86XVEnlistPortInWindow.
...
This avoids a crash in xf86XVReputVideo and also cleans up the code slightly.
2007-05-24 12:10:05 +02:00
Soren Sandmann Pedersen
047bf3349b
Delete trapezoid rendering code; replace with pixman calls
2007-05-23 16:56:05 -04:00
Soren Sandmann Pedersen
9d87ef4e0d
- Make image_from_pict() non-static
...
- Delete fbedge.c and fbedgeimp.h
- Use pixman_rasterize_edges() in fbtrap.c
2007-05-23 15:50:25 -04:00
Soren Sandmann Pedersen
2a960c442b
Port renderedge.c to pixman
2007-05-23 13:08:26 -04:00
Soren Sandmann Pedersen
3ba3ede9bb
Add missing offsets for window coordinates - reported by Colin Harrison
2007-05-23 12:56:04 -04:00
Michel Dänzer
cc648e609d
EXA: Export ExaOffscreenMarkUsed.
...
Can be used to inform EXA that an offscreen area is used outside of EXA.
2007-05-22 10:51:56 +02:00
Adam Jackson
e6a7198e7c
Bug #8991 : Add glXGetDrawableAttributes dispatch; fix texture format therein.
...
Adapted to master branch by Michel Dänzer <michel@tungstengraphics.com>.
2007-05-22 10:51:55 +02:00
Michel Dänzer
6324bfc468
AIGLX: Zero-copy texture-from-pixmap.
...
When available, use the 2D driver texOffsetStart hook and the 3D driver
setTexOffset hook to save the overhead of passing the pixmap data to
glTex(Sub)Image.
The basic idea is to update the driver specific 'offset' for bound pixmaps
before dispatching a GLX render request and to flush immediately afterwards
if there are any pixmaps bound. This should ensure that the 3D driver can
use pixmaps for texturing directly regardless of the X server moving them
around.
2007-05-22 10:51:53 +02:00
Michel Dänzer
5006d08d7f
DRI: Add TexOffset driver hooks.
...
To be used by AIGLX for GLX_EXT_texture_from_pixmap without several data copies.
The texOffsetStart hook must make sure that the given pixmap is accessible by
the GPU for texturing and return an 'offset' that can be used by the 3D
driver for that purpose.
The texOffsetFinish hook is called when the pixmap is no longer being used for
texturing.
2007-05-22 10:51:52 +02:00
David Nusinow
ff2eae86b6
Fix boolean thinko that prevented working without a server layout
2007-05-21 22:10:55 -04:00
Soren Sandmann Pedersen
56fd927155
Remove fast path code from fbpict.c
...
Remove the various fast path functions from fbpict, and instead use
pixman_image_composite().
2007-05-21 20:00:25 -04:00
Peter Hutterer
d0e8f47409
Change GrabDevice's parameter name back to "coreGrab".
...
Was changed during a global search/replace for
5c680e9493
.
Otherwise people like me introduce bugs (e.g. in
333bab4b23
)
2007-05-21 13:06:21 +09:30
Peter Hutterer
167e1773de
Remove unused include "gestr.h"
2007-05-21 10:45:10 +09:30
Fredrik Höglund
7e2c935920
Add a new IDLETIME system sync counter.
...
This counter exposes the time in milliseconds since the last
input event. Clients such as screen savers and power managers
can set an alarm on this counter to find out when the idle time
reaches a certain value, without having to poll the server.
2007-05-18 20:15:31 +02:00
Soren Sandmann Pedersen
756acea23a
Use pixman_image_set_indexed() to make 8 bit work
2007-05-18 14:06:21 -04:00
Soren Sandmann Pedersen
7916419a00
Comment out setup of general MMX code
2007-05-18 14:06:21 -04:00
Soren Sandmann Pedersen
998164bac6
Move fbCompositeGeneral() to fbpict.c and remove fbcompose.c
2007-05-18 14:06:21 -04:00
Soren Sandmann Pedersen
a2e3614eb8
Break image_from_pict() into a few subfunctions.
2007-05-18 14:06:21 -04:00
Soren Sandmann Pedersen
c5ef84c325
Make the general compositing code create a pixman image and call
...
pixman_image_composite(). Leave the general code commented out for now.
2007-05-18 14:06:21 -04:00
Keith Packard
076d070e18
Use Screen block handler for rotation to draw under DRI lock.
...
DRI uses a non-screen block/wakeup handler which will be executed after the
screen block handler finishes. To ensure that the rotation block handler is
executed under the DRI lock, dynamically wrap the screen block handler for
rotation.
2007-05-17 20:24:18 -07:00
Keith Packard
915563eba5
Disable all outputs and crtcs at startup.
...
Leaving devices enabled during server startup can cause problems during the
initial mode setting in the server, especially when they are used for
different purposes by the X server than by the BIOS. Disabling all of them
before any mode setting is attempted provides a stable base upon which the
remaining mode setting operations can be built.
2007-05-17 20:22:43 -07:00
Soren Sandmann Pedersen
0375009a97
Remove excessive unrolling in fbCompositeSrc_x888x8x8888() and fix bug where
...
the source alpha was used instead of 0xff.
2007-05-17 12:59:24 -04:00
Peter Hutterer
0b4db74922
Squish the flags into the upper bits of the mode field for EnterLeave events.
...
This way we have enough space for the detail field.
2007-05-17 18:00:07 +09:30
Peter Hutterer
333bab4b23
Clean up, correct some comments.
...
Send event type down with the RawEvents.
2007-05-17 17:59:02 +09:30
Peter Hutterer
bc334286b0
Init device axis with -1,-1 minimum values.
...
This is needed to be able to cross to screens located east/north of the
current active screen.
2007-05-17 10:36:46 +09:30
Soren Sandmann Pedersen
546465ee6a
Make fbFetch_b8g8r8() actually write the read value to the buffer
2007-05-16 17:42:04 -04:00
Soren Sandmann Pedersen
0fcd17c918
Use pixman short formats, revert the gradient_stop change
2007-05-15 17:59:13 -04:00
Soren Sandmann Pedersen
f4c1d5fc28
Use pixman types for transforms and vectors
2007-05-15 17:12:22 -04:00
Soren Sandmann Pedersen
f2e30e7d0a
Use the pixman fixed point types and macros
2007-05-15 16:51:21 -04:00
Soren Sandmann Pedersen
3da842bf93
Revert various fast path functions to their pre-pixman-merge state
...
since they fail rendercheck. Remove their associated macros.
See bug 10903.
2007-05-15 14:57:14 -04:00
Soren Sandmann Pedersen
1568b6b6a0
Port large amounts of the region code to pixman
2007-05-15 11:13:16 -04:00
Soren Sandmann Pedersen
dde0ceac4e
Add new InitRegions() function called from dix/main
2007-05-15 11:13:15 -04:00
Soren Sandmann Pedersen
e037052ac5
Turn boxes and regions into typedefs for pixman types
2007-05-15 11:13:14 -04:00
Soren Sandmann Pedersen
8e56f5be4b
Add dependency on pixman 0.9.0
2007-05-15 11:13:14 -04:00
Peter Hutterer
a8c56372ba
Revert "Allow events to grabWindows event if the device is not grabbed."
...
This reverts commit 339b73e710
.
Allowing those events can lead to race conditions.
Conflicts:
dix/events.c
2007-05-15 10:24:22 +09:30
Peter Hutterer
81fc6a128b
Add ungrab support to ExtendedGrabDeviceRequest handling.
...
Polish the code a bit.
2007-05-14 18:12:56 +09:30
Peter Hutterer
5c680e9493
Remove double-grab option. We only want one grab per device.
2007-05-14 12:34:53 +09:30
Peter Hutterer
4dc973f08c
Add ExtendedGrabDevice handling.
...
Add XGE handling in DeliverGrabbedEvent.
We can now grab something selecting XGE events, but the current code is a
bit messy and doesn't work too well yet.
2007-05-14 10:42:03 +09:30
Adam Jackson
a277f04ab0
Remove mfb and cfb from include paths where they're not needed.
2007-05-11 11:43:19 -04:00
Adam Jackson
20c5250e48
Use system copy of cbrt() if available.
...
Also move the replacement inline into miarc.c, since that's the only user.
2007-05-11 11:43:19 -04:00
Adam Jackson
8dcc37520d
Use _X_INLINE instead of ad-hoc #defines.
2007-05-11 11:43:19 -04:00
Adam Jackson
6ff239cb4e
Make the use of ICEIL slightly less ugly.
2007-05-11 11:43:19 -04:00
Colin Harrison
178d426311
Missing piece from bug 9808
2007-05-11 10:08:42 +01:00