Commit Graph

237 Commits

Author SHA1 Message Date
Alan Coopersmith
888b33c679 configure: Update links to use gitlab instead of anongit & bugzilla
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/merge_requests/27>
2024-09-29 11:09:55 -07:00
nia
b65036af74 Avoid namespace collision: rename bswap_XX to radeon_bswap_XX
xorg-server includes its own bswap_16, bswap_32 etc macros in
its misc.h. This is transcluded after radeon.h in some files.

If the operating system defines bswap_XX in a way that is
unsuitable for a function name (e.g. on NetBSD), this results
in build failures.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/merge_requests/23>
2024-06-02 18:41:52 +00:00
Matt Turner
0c01893774 Bump version for 22.0.0 release
Signed-off-by: Matt Turner <mattst88@gmail.com>
2023-04-25 14:40:08 -04:00
Alan Coopersmith
11d549d591 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 09:24:46 -08:00
Michel Dänzer
b9bd8097e1 Bump version for 19.1.0 release 2019-10-15 17:54:12 +02:00
Michel Dänzer
36703f66c3 Bump version for 19.0.1 release 2019-03-19 18:01:02 +01:00
Michel Dänzer
0d132d99e0 Bump version for 19.0.0 release 2019-03-06 17:48:42 +01:00
Michel Dänzer
b559fd83b2 Post-release version bump 2018-11-19 11:38:22 +01:00
Michel Dänzer
80514b7b1b Bump version for 18.1.0 release 2018-09-14 17:48:49 +02:00
Michel Dänzer
cba8fe4d64 Use AC_CONFIG_MACRO_DIR instead of AC_CONFIG_MACRO_DIRS
Older versions of autoconf only supported the former.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
2018-08-24 17:05:06 +02:00
Michel Dänzer
7de4ea1588 Bump version to 18.0.99
Forgot to do this after the 18.0.1 release.
2018-07-27 09:13:12 +02:00
Michel Dänzer
ffdbd46b0a Hardcode "non-desktop" RandR property name
It's a bit silly to require current randrproto just for this definition,
which can't really change anyway.

Suggested-by: Qiang Yu <qiang.yu@amd.com>
(Ported from amdgpu commit ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-23 11:02:32 +02:00
Keith Packard
f533b1f654 Add RandR leases support
Signed-off-by: Keith Packard <keithp@keithp.com>
(Ported from xserver commit e4e3447603b5fd3a38a92c3f972396d1f81168ad)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
(Ported from amdgpu commit 61040bdfa360975614fb47aa7ea1b3a1abac3427)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-12 18:13:34 +02:00
Keith Packard
612bda0a5e modesetting: Record non-desktop kernel property at PreInit time
Save any value of the kernel non-desktop property in the xf86Output
structure to avoid non-desktop outputs in the default configuration.

[Also bump randrproto requirement to a version that defines
RR_PROPERTY_NON_DESKTOP - ajax]

Signed-off-by: Keith Packard <keithp@keithp.com>
(Ported from xserver commit b91c787c4cd2d20685db69426c539938c556128a)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
(Ported from amdgpu commit 14db71a606128c4a207f43298809af279b77e2a8)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-12 18:10:08 +02:00
Michel Dänzer
3c4c0213c1 glamor: Use GBM for BO allocation when possible
Inspired by amdgpu. This avoids various issues due to a GEM handle
lifetime conflict between us and Mesa with current glamor.

Bugzilla: https://bugs.freedesktop.org/105381
Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-09 18:28:21 +02:00
Michel Dänzer
fdba537352 Bump version for 18.0.1 release 2018-03-15 17:19:59 +01:00
Michel Dänzer
7e18aea984 Bump version for 18.0.0 release 2018-03-06 18:15:45 +01:00
Christoph Haag
f2915eb7a4 fix include order for present.h configure test
xorg-server.h defines _XSERVER64 which is used in X.h to choose the
correct definition of XID

this prevents a failure in the present.h configure test that disables
DRI3 on X.Org 1.20

Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2018-03-01 16:25:52 +01:00
Michel Dänzer
b71836c996 Post-release version bump 2017-10-04 11:05:49 +02:00
Michel Dänzer
f9aca8c1a7 Bump version for 7.10.0 release 2017-09-08 17:02:59 +09:00
Michel Dänzer
5cdd334b34 Require xserver >= 1.13
xserver 1.13.0 was released on September 6th, 2012, almost 5 years ago.

This allows cleaning up a bunch of backwards compatibility code.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-08-30 18:48:19 +09:00
Martin Peres
0472a605e0 modesetting: re-set the crtc's mode when link-status goes BAD
Despite all the careful planning of the kernel, a link may become
insufficient to handle the currently-set mode. At this point, the
kernel should mark this particular configuration as being broken
and potentially prune the mode before setting the offending connector's
link-status to BAD and send the userspace a hotplug event. This may
happen right after a modeset or later on.

Upon receiving a hot-plug event, we iterate through the connectors to
re-apply the currently-set mode on all the connectors that have a
link-status property set to BAD. The kernel may be able to get the
link to work by dropping to using a lower link bpp (with the same
display bpp). However, the modeset may fail if the kernel has pruned
the mode, so to make users aware of this problem a warning is outputed
in the logs to warn about having a potentially-black display.

This patch does not modify the current behaviour of always propagating
the events to the randr clients. This allows desktop environments to
re-probe the connectors and select a new resolution based on the new
(currated) mode list if a mode disapeared. This behaviour is expected in
order to pass the Display Port compliance tests.

(Ported from xserver commit bcee1b76aa0db8525b491485e90b8740763d7de6)

[ Michel: Bump libdrm dependency to >= 2.4.78 for
  DRM_MODE_LINK_STATUS_BAD ]
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-08-18 14:40:19 +09:00
Michel Dänzer
e628f604d0 Add AC_CONFIG_MACRO_DIRS([m4]) to configure.ac
Suggested by one of the tools called by autoreconf.

(Cherry picked from amdgpu commit 227b399badaad9bbef0be5a776ce008d0d243449)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
2017-07-27 15:24:37 +09:00
Michel Dänzer
d80d01a73c Update URLs
* Point to the amd-gfx mailing list
* Specify the component in all bugzilla URLs
* Use https:// for all HTML URLs

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-05-18 11:12:34 +09:00
Michel Dänzer
dc30f5e27e Post-release version bump 2017-03-23 18:06:23 +09:00
Michel Dänzer
6622706087 Bump version for 7.9.0 release 2017-03-16 16:38:15 +09:00
Michel Dänzer
55a33205cb Add 10-radeon.conf xorg.conf.d snippet
This instructs Xorg >= 1.16 to try loading the radeon driver for devices
managed by the radeon kernel driver, even if the ati wrapper driver
isn't available.

Copied from the amdgpu driver.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-01-26 18:27:30 +09:00
Jammy Zhou
720dd07e79 Use render node for DRI3 if available
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
(ported from amdgpu commit ea558e645786b08d75307716036045170e97b43e)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
[ Second attempt, let's see if there's any fallout this time... ]
2016-12-19 17:27:19 +09:00
Michel Dänzer
aab80d2203 Post-release version bump 2016-11-18 12:11:38 +09:00
Michel Dänzer
5cbe1ee8e4 Bump version for 7.8.0 release 2016-11-17 11:32:56 +09:00
Michel Dänzer
5df36de399 Require xserver 1.10 or newer
1.10.0 was released in February 2011.

We've been accidentally requiring 1.10 or newer since 121a6de72d ("Keep
track of damage event related flushes per-client v2").

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-10-27 11:40:13 +09:00
Michel Dänzer
49cf3b5032 Sayōnara, AM_MAINTAINER_MODE!
If --enable-maintainer-mode got lost from config.status for any reason,
builds would fail in mysterious ways after changing between different
Git commits.

There are more reasons for dropping it in the automake manual:

https://www.gnu.org/software/automake/manual/html_node/maintainer_002dmode.html

I'm not aware of any reason why --disable-maintainer-mode would ever be
useful with this project.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-10-20 15:33:09 +09:00
Michel Dänzer
80cc892ee1 Use local implementation of RegionDuplicate for older xserver
It was only added in xserver 1.15. Fixes build against older xserver.

Reported-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-09-20 17:45:16 +09:00
Michel Dänzer
3300ea01fb Post 7.7.0 release version bump 2016-04-11 16:11:57 +09:00
Michel Dänzer
df6662864b Bump version for 7.7.0 release 2016-04-07 11:44:05 +09:00
Michel Dänzer
8a6cd4bda0 Revert "Use render node for DRI3 if available"
This reverts commit cd94248ffa.

It broke VDPAU<->GL interop with DRI3 enabled, because the Gallium VDPAU
code doesn't support DRI3 yet. We can consider re-enabling this once
there is a Mesa release where the Gallium VDPAU code supports DRI3.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94675

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-03-25 11:50:15 +09:00
Michel Dänzer
e592f32f8b Require xserver 1.9 or newer
1.9.0 was released in August 2010.

We were already unintentionally relying on things not available in 1.8
for at least a year, and nobody has complained.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-03-24 18:02:46 +09:00
Michel Dänzer
d670c5c985 Check for xf86CursorResetCursor
If it's available, Xorg calls it on each mode configuration change. It
does what xf86_reload_cursors does (and more), so we don't need to call
the latter anymore.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-03-23 16:54:24 +09:00
Jammy Zhou
cd94248ffa Use render node for DRI3 if available
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
(ported from amdgpu commit ea558e645786b08d75307716036045170e97b43e)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-16 16:36:33 +09:00
Michel Dänzer
10b7c3def5 glamor: Deal with glamor_egl_destroy_textured_pixmap being removed
When it's not available, it's safe to call down to the glamor
DestroyPixmap hook instead.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-11-17 12:25:15 +09:00
Michel Dänzer
dfb52777e4 Post 7.6.1 release version bump 2015-11-12 13:49:04 +09:00
Michel Dänzer
99cb8c3faf Set version for 7.6.1 release 2015-11-12 13:38:14 +09:00
Michel Dänzer
960a9f3709 Post 7.6.0 release version bump 2015-11-12 13:20:18 +09:00
Michel Dänzer
9aae4b71fb Bump version for 7.6.0 release 2015-11-12 11:56:48 +09:00
Michel Dänzer
818c180c89 glamor: Deal with glamor_glyphs_init being removed from xserver
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-05-15 10:20:19 +09:00
Michel Dänzer
ae92d1765f glamor: Add Option "ShadowPrimary" v2
When this option is enabled, most pixmaps (including the screen pixmap)
are allocated in system RAM and mostly accessed by the CPU. Changed areas
of the screen pixmap are copied to dedicated per-CRTC scanout pixmaps
regularly, triggered by the vblank interrupt.

v2:
* Set region data pointer to NULL for keeping only the extents
* Move pRegion and pBox local variable declarations closer to their uses
  in drmmode_set_mode_major()
2015-04-03 11:42:00 +09:00
Michel Dänzer
aa7825eb29 configure.ac: Check for misyncshm.h again
We need this header, which was added after the other misync*.h headers,
along with DRI3 support.
2015-03-23 10:12:17 +09:00
Michel Dänzer
af1862a375 Always include misync.h before other misync headers
Older versions of xserver didn't include misync.h from other misync
headers as needed.
2015-03-18 11:05:40 +09:00
Michel Dänzer
64e1e4dbdd Add DRI3 support v2
Must be enabled with

	Option	"DRI3"

in xorg.conf.

v2: Adapt to v2 of patches 11/12.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-03-17 11:00:39 +09:00
Michel Dänzer
3c65fb849e Add support for the Present extension v2
v2: Fix up for struct radeon_drm_queue -> radeon_drm_queue_entry.
    Swapped order of patches 11 & 12 because the Present extension uses
    SYNC fences.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-03-17 11:00:27 +09:00