- 03 Apr, 2014 1 commit
-
-
Michael Thayer authored
load_cursor_argb() may need to be able to fail and have the server fall back to a software cursor in at least the following circumstances. 1) The hardware can only support some ARGB cursors and this does not just depend on cursor size. 2) Virtual hardware may not wish to pass through a cursor to the host at a particular time but may wish to accept the same cursor at another time. This patch adds a return value to the API and makes the server do the software fall-back on failure. Signed-off-by:
Michael Thayer <michael.thayer@oracle.com> Reviewed-by:
Dave Airlie <airlied@redhat.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 24 Apr, 2013 1 commit
-
-
Jeremy White authored
Signed-off-by:
Jeremy White <jwhite@codeweavers.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 07 Jul, 2012 3 commits
-
-
Dave Airlie authored
This is so we can tell the scanout pixmap has changed between calls to the crtc set function. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
This will detach any scanout pixmaps attached to slave crtcs. Reviewed-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
Add the simple passthrough interface for drivers to use, so they can set scanout pixmaps. v2: detach scanout pixmap properly. Reviewed-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 06 Jul, 2012 1 commit
-
-
Dave Airlie authored
This adds the framework for DDX provider support. v2: as per keithp's suggestion remove the xf86 provider object and just store it in the toplevel object. v3: update for new protocol v4: drop devPrivate, free name Reviewed-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 21 Mar, 2012 1 commit
-
-
Keith Packard authored
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by:
Keith Packard <keithp@keithp.com> Acked-by:
Daniel Stone <daniel@fooishbar.org> Acked-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 Nov, 2011 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Jeremy Huddleston <jeremyhu@apple.com>
-
- 10 Oct, 2011 1 commit
-
-
Julien Cristau authored
https://bugs.freedesktop.org/show_bug.cgi?id=29111Signed-off-by:
Julien Cristau <jcristau@debian.org> Tested-by:
Cyril Brulebois <kibi@debian.org> Reviewed-by:
Cyril Brulebois <kibi@debian.org>
-
- 03 Oct, 2011 2 commits
-
-
Aaron Plattner authored
When the driver can handle the crtc transform in hardware, it sets crtc->driverIsPerformingTransform, which turns off both the shadow layer and the cursor's position-transforming code. However, some drivers actually do require the cursor position to still be transformed in these cases. Move the cursor position transform into a helper function that can be called by such drivers. Signed-off-by:
Aaron Plattner <aplattner@nvidia.com>
-
Aaron Plattner authored
If a driver can use hardware to handle the crtc transform, then there's no need for the server's shadow layer to do it. Add a crtc flag that lets the driver indicate that it is handling the transform. If it's set, consider the transformed size of the screen but don't actually enable the shadow layer. Also stop adjusting the cursor image and position. Signed-off-by:
Aaron Plattner <aplattner@nvidia.com>
-
- 23 Feb, 2011 4 commits
-
-
Keith Packard authored
This reverts commit 8b35118c.
-
Keith Packard authored
This reverts commit 66294afc.
-
Keith Packard authored
This reverts commit 86c489c3.
-
Keith Packard authored
This reverts commit 82612045.
-
- 07 Dec, 2010 4 commits
-
-
Keith Packard authored
This adds new driver hooks to allocate scanout pixmaps and changes the mode setting APIs to pass the new scanout pixmaps along from DIX. DIX is responsible for reference counting the pixmaps by tracking them through RRCrtcNotify. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Aaron Plattner <aplattner@nvidia.com>
-
Keith Packard authored
This provides a driver hook which can either completely replace, or just validate the parameters for, the RRSetCrtcConfigs request. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Aaron Plattner <aplattner@nvidia.com>
-
Keith Packard authored
This implements sprite position transformations. Sprite image transforms are passed all the way to the DDX layer, but the images are not yet manipulated before being passed to the drivers. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Aaron Plattner <aplattner@nvidia.com>
-
Keith Packard authored
xf86CrtcSetModeTransform was starting to get ridiculous with 6 arguments, this change has it take a single structure that contains all of those values along with a set of flags that says which have changed. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Aaron Plattner <aplattner@nvidia.com>
-
- 25 Feb, 2010 1 commit
-
-
Keith Packard authored
When the compat output is missing (I don't think this is actually possible), or is disabled (and hence has no crtc), we would like to avoid dereferencing NULL pointers. This patch creates inline functions to extract the current compat output, crtc or associated RandR crtc structure, carefully checking for NULL pointers everywhere. Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 01 Oct, 2009 1 commit
-
-
Keith Packard authored
Removing DGA ended up breaking any drivers calling into the old xf86DiDGAInit function as it tried to see if DGA was already enabled and ended up crashing if the VT wasn't completely initialized. Oops. Also, if the driver initializes DGA itself, have the DiDGA initialization overwrite that information as the DiDGA code will call ReInit on mode detect. Signed-off-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 17 Feb, 2009 1 commit
-
-
Keith Packard authored
When the crtc transformation changes, the entire crtc must be repainted. This was being done by clearing the shadow and then painting the rectangle containing the screen image; the clear being required as the screen image may not fill the crtc. When changing the transform rapidly, this leads to flashing. Eliminate the clear by painting the entire crtc instead of just the screen rectangle. Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 05 Jan, 2009 2 commits
-
-
Paulo Cesar Pereira de Andrade authored
All symbols in installed sdk headers should be explicitly tagged as exported symbols. Otherwise, to ensure it is not a mistake, one could write it as something like: extern /* NOEXPORT */ type name ...; but the proper procedure really should be to use a non sdk header (or a "noinst_" one). This patch also removes prototypes to some functions that existed only temporarily.
-
Daniel Stone authored
It's optional, so we might as well work when it's disabled. Signed-off-by:
Daniel Stone <daniel@fooishbar.org>
-
- 18 Dec, 2008 1 commit
-
-
Maarten Maathuis authored
-
- 17 Dec, 2008 2 commits
-
-
Maarten Maathuis authored
- Add active field to crtc. - Set gamma (only) whenever a crtc becomes active. - Check for xf86_config being NULL. - Increase crtc abi to 3. - A few other fixes.
-
Maarten Maathuis authored
- The Gamma values from the monitor section are now used during initial config. - The old colormap system is disabled when gamma set hook is available. - Gamma values are now persistent for the lifetime of the xserver. - This requires no driver changes and should be driver ABI compatible.
-
- 15 Dec, 2008 1 commit
-
-
Keith Packard authored
The shadow frame buffer and other data used for rotation need to be freed when the crtc is disabled, not just when rotation is disabled. Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 11 Dec, 2008 1 commit
-
-
Matthias Hopf authored
-
- 07 Dec, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
All .a libraries were converted to .la, and instead of linking the Xorg binary with a mix of .a and .la, and adding some libraries more then once in the command line, etc, now it generates a single libxorg.la from all the required convenience libraries, and links with a dummy xorg.c (that should usually be the file with the main function...). This removes the requirement of some things like libosandcommon and libinit, that existed to circumvent problems when linking multiple .a and .la in the final Xorg binary. The "symbol table" is now generated dynamically, by a shell script, with an embedded gawk parser that parses cpp output. The new file sdksyms.sh is generated by hand by analyzing all Makefile.am's and making it create a sdksyms.c file, that includes all sdk headers that will add symbols for the Xorg binary. Module headers aren't read, and a in 2 files it was required to add a "<hash>ifndef XorgLoader" around declarations shared between the Xorg binary and libextmod. A few other changes were added to other sdk headers, like preventing multiple inclusion, or including other headers to satisfy dependencies. This should be a lot more portable, and better (hopefully properly) using libtool to generate convenience libraries.
-
- 04 Dec, 2008 3 commits
-
-
Paulo Cesar Pereira de Andrade authored
The attribute should be set on header files to make it easier to manage what symbols are available to modules. _X_EXPORT should be used in sources only for special cases, like symbols that must be visible by non video/input driver/modules but should not be "advertised" in the sdk.
-
Matthias Hopf authored
-
Matthias Hopf authored
-
- 03 Dec, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
-
- 24 Nov, 2008 5 commits
-
-
Keith Packard authored
Track curent transform down in the mode setting code so that it may be set separately from RandR.
-
Keith Packard authored
RandR matrix computations lose too much precision in fixed point; computations using the inverted matrix can be as much as 10 pixels off. Convert them to double precision values and pass those around. These API changes are fairly heavyweight; the official Render interface remains fixed point, so the fixed point matrix comes along for the ride everywhere.
-
Keith Packard authored
-
Keith Packard authored
Create new RRTransform datatype to hold all of the transform related information, use that in lots of places to pass filters around.
-
Keith Packard authored
Drivers that care about crtc positions on the screen to ensure that vblank works correctly need to be notified when crtcs are changed. Provide a hook in the mode setting code that is invoked whenever any configuration is done to the screen. Use this new hook in the DRI code so that DRI clients are notified and receive updated information. Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 29 Apr, 2008 1 commit
-
-
Hong Liu authored
LeaveVT/EnterVT cycles will free/realloc shadow frame buffers. Because of this, the presense/absence of that data is insufficient to know whether the screen function wrappers are necessary. Instead, the 'transform_in_use' flag should be used. This patch also adds 'xf86RotateFreeShadow' for drivers to use at LeaveVT time to free the rotation data; it will be reallocated on EnterVT.
-