Commit Graph

1552 Commits

Author SHA1 Message Date
Alan Coopersmith
6228d9a88c xf86-video-r128 6.13.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-r128-6.13.0
2024-10-12 13:05:44 -07:00
Alan Coopersmith
1248506f18 configure: update link to use gitlab instead of anongit
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/14>
2024-09-29 17:28:54 -07:00
Alan Coopersmith
0ee4ec6947 Move sizeof to second argument in calloc calls
Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:

r128_dri.c: In function ‘R128DRIScreenInit’:
r128_dri.c:822:48: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
 earlier argument and not in the later argument [-Wcalloc-transposed-args]
  822 |     if (!(pR128DRI = (R128DRIPtr)calloc(sizeof(R128DRIRec),1))) {
      |                                                ^~~~~~~~~~
r128_dri.c:822:48: note: earlier argument should specify number of elements,
 later size of each element

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/13>
2024-07-14 13:32:15 -07:00
Enrico Weigelt, metux IT consult
7713ca6730 drop support for ancient xserver versions
We're now relying on at least 1.18

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/11>
2024-06-10 11:31:59 +02:00
Enrico Weigelt, metux IT consult
25c645b9e5 fix FTBS on debian: missing statement after label
Compilers on recent Debian (gcc as well as clang) break compilation if
there's no statement after a label:

> ../../src/r128_driver.c:571:1: error: expected statement
> }

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/12>
2024-06-06 14:47:55 +02:00
Alan Coopersmith
38959ab716 Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
Already effectively required by use of XNFcallocarray() introduced in
xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015.

Allows dropping remnants of code for XAA and pre-pciaccess X servers

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/10>
2024-05-14 18:51:13 -07:00
Alan Coopersmith
025a91ee0c R128ScreenInit: fix indentation
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/10>
2024-05-14 18:38:15 -07:00
Enrico Weigelt, metux IT consult
965d321ac7 use XNFcallocarray() instead of xnfcalloc macro
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-r128/-/merge_requests/8>
2024-05-12 17:03:49 +00:00
nia
f753d699fd backlight control and console detection for wsdisplay systems
based on a patch by Michael Lorenz.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/7>
2024-05-06 01:26:31 +02:00
nia
09ca76bf1d don't assume VGA output on non-x86
Patch adapted from work by Michael Lorenz.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/7>
2024-05-06 00:05:27 +02:00
nia
c0e1c348a9 Alternative non-BIOS method to determine the panel size for NetBSD
With this we no longer need to specify PanelWidth and PanelHeight in
xorg.conf on non-x86 platforms.

Patch adapted from work by Michael Lorenz.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/merge_requests/7>
2024-05-06 00:04:52 +02:00
Alan Coopersmith
abb15a335a Fix 9 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 15:11:00 -08:00
Alan Coopersmith
96a44413d2 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 15:01:43 -08:00
Alan Coopersmith
d84143baf5 configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:

configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:44: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:44: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:58:05 -08:00
Alan Coopersmith
9dc298ead7 gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01 11:09:47 -07:00
Alan Coopersmith
f0b2307d31 Remove "All rights reserved" from Oracle copyright notices
Oracle no longer includes this term in our copyright & license notices.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25 09:13:47 -08:00
Alan Coopersmith
24cf717079 xf86-video-r128 6.12.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-r128-6.12.1
2022-12-04 13:05:03 -08:00
Niveditha Rau
01a5ffffd0 Mark DriverRec exported in r128_probe.h to match r128_probe.c
Fixes build failure when compiling with Solaris Studio compiler
using -xldscope=hidden:
"r128_probe.c", line 359: redeclaration must have the same or more
  restrictive linker scoping: R128

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-07 17:22:00 -08:00
Alan Coopersmith
e9cf08f26c R128RAMRec: constify name pointer
Clears 4 gcc warnings:
r128_driver.c:178:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     { 4, 4, 3, 3, 1, 3, 1, 16, 12, "128-bit SDR SGRAM 1:1" },
                                    ^~~~~~~~~~~~~~~~~~~~~~~
r128_driver.c:179:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     { 4, 8, 3, 3, 1, 3, 1, 17, 13, "64-bit SDR SGRAM 1:1" },
                                    ^~~~~~~~~~~~~~~~~~~~~~
r128_driver.c:180:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     { 4, 4, 1, 2, 1, 2, 1, 16, 12, "64-bit SDR SGRAM 2:1" },
                                    ^~~~~~~~~~~~~~~~~~~~~~
r128_driver.c:181:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     { 4, 4, 3, 3, 2, 3, 1, 16, 12, "64-bit DDR SGRAM" },
                                    ^~~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:13:00 -07:00
Alan Coopersmith
3142544e8d gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:00:43 -07:00
Alan Coopersmith
7b0941d121 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27 17:12:07 -08:00
Alan Coopersmith
b5529f9602 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27 17:09:09 -08:00
Alan Coopersmith
097c8e4f91 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27 17:07:12 -08:00
Alan Coopersmith
3af7cd1faf Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07 18:57:58 -08:00
Alan Coopersmith
49558fb904 Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 16:02:31 -08:00
Kevin Brace
38216bdc81 Version bumped to 6.12.0
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
xf86-video-r128-6.12.0
2018-10-22 21:02:17 -07:00
Kevin Brace
0dc8f6d099 Remove Dac6Bit option from man page
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-10-22 20:58:43 -07:00
Kevin Brace
3c292d8f90 Fix for build failure when --disable-dri option is specified
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-10-22 20:46:20 -07:00
Helmut Grohne
9d62b878ce Another fix for cross build failure
While commit 11b230b removed most usage of AC_CHECK_FILE, one more of
it was left in the compilation build script. This will hopefully fix
the cross build failure for good.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
2018-10-22 20:26:51 -07:00
Kevin Brace
1b17c78941 Version bumped to 6.11.102
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-04 13:38:53 -07:00
Kevin Brace
b933024350 Consolidate acquisition of many options into two functions
Move acquiring of the option settings into r128AcquireOption and
r128UMSOption functions.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 13:11:42 -07:00
Kevin Brace
d82464bce6 Rename R128UMSOption to r128UMSOption
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 12:59:30 -07:00
Kevin Brace
1fe5b0c0ab Version bumped to 6.11.101
Performed DRI1 and EXA / XAA initialization code refactoring.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 12:47:54 -07:00
Kevin Brace
fb62541005 Hold off enabling acceleration until EXA / XAA are fully initialized
The turn on timing is premature. Wait until completion of the
initialization process.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 12:41:31 -07:00
Kevin Brace
b395a05428 Consolidate EXA initialization code into R128EXAInit
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 12:38:39 -07:00
Kevin Brace
78b21efdce Deprecate R128VerboseInitEXA
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 10:44:15 -07:00
Kevin Brace
370dc01505 Deprecate R128AccelInit
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 10:43:18 -07:00
Kevin Brace
4685a918ff Deprecate R128EXAAccelInit
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 10:42:03 -07:00
Kevin Brace
d9c7c8306b Consolidate frame buffer initialization code
The previous implementation had duplicated code depending on which
standard is being used (i.e., DRI1 and / or EXA).

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-08-02 10:22:29 -07:00
Kevin Brace
ec61d090f8 Prevent disabling of EXA inside R128ScreenInit
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-27 16:52:03 -07:00
Kevin Brace
641d3d42b7 Version bumped to 6.11.100
Performed code refactoring and made tweaks to initialization behavior.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-27 11:22:49 -07:00
Kevin Brace
7dbb89d6fd Move loading of EXA and XAA modules into R128PreInitAccel
Moving them away from R128ScreenInit callback function. This is how
other DDXs do it.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-27 11:08:29 -07:00
Kevin Brace
c4c05c95ae Move RAMDAC module initialization into R128LegacyMS
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 19:58:06 -07:00
Kevin Brace
f54469efca Delete OPTION_DISPLAY option enumeration
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 19:43:27 -07:00
Kevin Brace
2a903d7c00 Delete USE_CRT_ONLY conditional compilation directive
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 19:41:06 -07:00
Kevin Brace
b5f0862bbb Move many DDX UMS options into R128UMSOption
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 19:36:22 -07:00
Kevin Brace
0ef4fbad35 Remove OPTION_DAC_8BIT option
It is no longer used.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 13:38:16 -07:00
Kevin Brace
4e3638c612 Evaluate software cursor option inside R128PreInit
Since SWCursor option is referenced only once, it should be handled
inside R128PreInit callback function rather than R128ScreenInit
callback function.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-26 10:11:59 -07:00
Kevin Brace
15d245de28 Evaluate EXA related options inside R128PreInit
Since AccelMethod and RenderAccel options are referenced only once,
it should be handled inside R128PreInit callback function rather
than R128ScreenInit callback function.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-25 20:19:06 -07:00
Kevin Brace
680aeee673 Evaluate NoAccel option inside R128PreInit
Since NoAccel option is referenced only once, it should be handled
inside R128PreInit callback function rather than R128ScreenInit
callback function.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-25 20:15:37 -07:00