summaryrefslogtreecommitdiff
path: root/src/lx_driver.c
AgeCommit message (Collapse)Author
2024-06-24[LX] Make xf86SetDepthBpp use the Xserver defaults.Martin-Éric Racine
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-24Suppress majority of compiler warningsConnor Behan
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>
2024-06-23[LX] Bump the default pixel depth up to 24-bit.Martin-Éric Racine
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-11drop old compat macrosEnrico Weigelt, metux IT consult
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>
2024-06-11drop compat with video api major version < 20Enrico Weigelt, metux IT consult
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>
2024-05-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
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>
2022-01-22Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-12-03fix 'multiple definition of' linker errorChristian Gmeiner
Fix for FTBFS due to -fno-common on GCC 10. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2015-12-02LX: Restore old VT switch codeConnor Behan
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>
2015-03-12Fix building Geode against xserver 1.17Maarten Lankhorst
The xf86MapVidMem API is gone. Use pciaccess calls where applicable and mmap for XpressROMPtr. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
2013-01-09Remove mibstore.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-26Initial stab at converting geode to new X1.13 APIMaarten Lankhorst
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.
2012-07-11Whitespace cleanup using ../modular/x-indent.shMartin-Éric Racine
2011-12-19Fix for new vgaHW ABIAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-03-12Fix parameter ordering for calloc/xnfcalloc callsMart Raudsepp
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>
2010-11-19Print the panel mode BIOS usesFrank Huang
Signed-off-by: Frank Huang<frankr.huang@amd.com>
2010-09-01Replace xalloc/xrealloc/xfree/xcalloc with malloc/realloc/free/callocFrank Huang
* Replace the deprecated functions with new ones Refer to "/xserver/include/os.h" Signed-off-by: Frank Huang <frankr.huang@amd.com>
2009-07-28geode: change to using ABI version checkDave Airlie
2009-07-28geode: update for resources/RAC API removalDave Airlie
2009-05-28Remove useless loader symbol lists.Adam Jackson
2009-05-12Crasher fix: Use ExaDriverAlloc() to calloc the EXA struct.Kyle McMartin
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>
2008-11-18LX: Put back variable needed when PCIACCCESS is definedJordan Crouse
2008-11-18LX: Change the way EXA memory is allocatedJordan Crouse
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.
2008-08-25[LX] - RandR 1.2 updatesJordan Crouse
Remove a flag that was making EXA pixmaps break horribly. Also, Make the new code compile for Hardy and warning cleanups.
2008-08-18lx: Add rotation for Randr 1.2 + cleanupsJordan Crouse
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.
2008-08-07[LX] - Add RandR 1.2 supportJordan Crouse
A wholesale update to Randr 1.2 for LX accompanied by massive cleanup.
2008-06-10geode: Bring over the DCON detection code from the OLPC treeJordan Crouse
2008-06-10geode: Unmap the PCI memory when we close the screenJordan Crouse
2008-04-24geode: Add "native" DDC parsing to the Geode driverJordan Crouse
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.
2008-03-14amd: fix compile and warning issues from the mergeJordan Crouse
2008-03-14Massive coding style fixup - move to X coding style,Jordan Crouse
remove trailing whitespace, zap unused files and remove blocks of ifdefed out code.
2008-03-14First stage of the rename process - get rid of all amd_ prefixes -Jordan Crouse
change either to geode_ or just to lx_ or gx_ depending on the processor. Change the name in the Makefiles and other collateral