Age | Commit message (Collapse) | Author |
|
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
|
|
This applies some obvious changes to stop gcc from complaining about
dead code, shadow declarations, differing signedness and sections that
mix declarations with code.
The warning about discarding const qualifiers is more annoying because
we pass string literals to some functions which accept non-const
pointers. Currently, this takes the following approach. If the function
*needs* to accept non-const pointers, cast the string literal as char *.
Otherwise, change the function to only accept a const pointer. To
anticipate future use cases though, I could also leave function
definitions as they are and just always cast string literals.
Alternatively, if this is more trouble that it is worth, we could just
put up with the warnings.
Signed-off-by: Connor Behan <connor.behan@gmail.com>
|
|
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
|
|
There's used to have separate versions for older Xserver versions, but no
anymore, so these aren't needed anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
|
|
Since we're relying on xserver >= 1.18, we can assume video api
major version >= 20.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
|
|
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/merge_requests/4>
|
|
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Fix for FTBFS due to -fno-common on GCC 10.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
|
|
Calls for enabling and disabling outputs were removed from the VT switch
routine when RandR support was added. Presumably, this is because the
server already sets DPMS properly on a VT switch. However, DDX code can
undo what the server does so it seems best to keep the explicit calls.
Closes: X.Org Bugzilla #80825
Signed-off-by: Connor Behan <connor.behan@gmail.com>
|
|
The xf86MapVidMem API is gone. Use pciaccess calls where applicable and mmap for XpressROMPtr.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
|
|
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
Preparing to compile geode on X 1.13
All compiler errors are gone as far as I can tell,
but I lack the hardware to verify it works as well.
|
|
|
|
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
First argument is the number of elements and second the size of one
element, not vice-versa.
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
|
|
Signed-off-by: Frank Huang<frankr.huang@amd.com>
|
|
* Replace the deprecated functions with new ones
Refer to "/xserver/include/os.h"
Signed-off-by: Frank Huang <frankr.huang@amd.com>
|
|
|
|
|
|
|
|
Patch from Kyle McMartin. A recent exa/exa.c commit from Dave Airlie
(02ae85c4..) added a new member to the EXA struct, and corresponding
code to call it if it's non-NULL. We were using calloc with sizeof()
that struct at driver-compile-time; as a result, after the ABI change
the new member contained garbage, passed the EXA test for NULL, was
called, and segfaulted at startup.
RH bug https://bugzilla.redhat.com/show_bug.cgi?id=500086
Signed-off-by: Chris Ball <cjb@laptop.org>
|
|
|
|
Change how EXA memory is allocated to better allow for
EXA + video + rotation to co-exist on the system. Change
the video to only allocate memory when it needs it.
Also, automatically disable compression when there is less then
16Mb of memory.
|
|
Remove a flag that was making EXA pixmaps break horribly.
Also, Make the new code compile for Hardy and warning cleanups.
|
|
Enable rotation through RandR 1.2 and add the accelerated rotation blit
the EXA composite function. Also, fix a handful of critical bugs and
remove some more dead code.
|
|
A wholesale update to Randr 1.2 for LX accompanied by massive
cleanup.
|
|
|
|
|
|
Teach libDDC to access the DDC pins on the Geode natively, instead
of using the BIOS which has proven to be broken time and time again.
|
|
|
|
remove trailing whitespace, zap unused files and
remove blocks of ifdefed out code.
|
|
change either to geode_ or just to lx_ or gx_ depending on the processor.
Change the name in the Makefiles and other collateral
|