Commit Graph

108 Commits

Author SHA1 Message Date
matthieu
cc0541860a Adapt xf86-video-intel to xserver 1.19 ABI changes. Mostly
from upstreams commits.
Tested by many. Thanks.
2017-11-19 20:16:12 +00:00
robert
06a1409c9f check for typeof() and define HAVE_TYPEOF if available so that we use
the proper implementation of __container_of from xorg's list.h

ok kettenis@
2017-07-27 15:24:55 +00:00
kettenis
b436b5a385 Initialize flags member of struct drm_915_gem_mmap as the upcoming inteldrm(4)
update checks it.

Upstream fixed this differently, but that fix doesn't work for us as our
ioctl(2) subsystem works differently from Linux.

ok jsg@, tom@
2017-06-24 08:54:32 +00:00
matthieu
fd18c20e72 regen 2016-10-11 22:14:30 +00:00
jsg
7f4dc93108 Define an empty inline intel_sync_close() in a header for dri2 to match
newer intel code instead of putting an ifdef around the call.
2016-09-05 11:20:18 +00:00
jsg
d4793e821b Avoid calling a function only built with dri3, fixes an undefined
symbol crash when opting into uxa reported by Walter Alejandro Iglesias.

ok kettenis@ matthieu@
2016-06-02 05:37:26 +00:00
matthieu
799a95bf0b Pickup upstream commit 2c50639 to prepare build with xserver 1.18 2016-05-16 09:54:33 +00:00
kettenis
d9a335dd99 Revert previous commit; the "blt" codepath is obviously not tested very well
and makes X crash.
2015-12-03 22:36:46 +00:00
kettenis
0929ee3ac4 Partly disable acceleration on Broadwell. The inteldrm(4) driver fails to
restore something properly after resume which makes the render ring get stuck.
By defaulting to the "blt" acceleration method we avoid the use of this ring
and the machine remains usable after resume.

People who really want full 2D acceleration can still override the acceleration
method in their xorg.conf.

ok jsg@
2015-11-15 15:33:57 +00:00
jsg
ee66b4b1ec sna/gen8: Clamp URB allocations for GT3
From Chris Wilson in
7a9bdadd71730adc5266bc6758982abec5917b93

Fixes rendering problems on Broadwell GT3 (Iris 6100/Iris Pro 6200)
Tested by Thomas Weinbrenner on bugs@
2015-11-02 04:11:01 +00:00
matthieu
7f9fd3b14c Merge upstream commit to support xserver 1.17 2015-08-23 17:53:51 +00:00
matthieu
d031df2719 Update to xf86-video-intel 2.99.916
Fixes a display bug seenby ajacoutot@, ok jsg@ and kettenis@.
newer X.Org (2.99.917 or master) version cause corruption on older
machines (X40, i965), probably caused by a bug in our kernel,
under investigation by kettenis@.
2015-04-12 19:41:54 +00:00
jsg
af3873fce2 Build xf86-video-intel with --enable-kms-only. The i810/i815 UMS code
builds but won't work as the X server stopped supporting XAA multiple
major releases ago.  Furthermore it requires the userland AGP interface
that was removed from the kernel with 5.6.  These devices should work
fine with the vesa driver.

ok kettenis@
2014-12-15 13:17:34 +00:00
matthieu
24fb6f100a Update to xf86-video-intel 2.99.910 (aka 3.0RC10) tested by jsg@ and me. 2014-02-14 19:38:40 +00:00
matthieu
845ad2935c regen 2014-02-03 15:59:42 +00:00
matthieu
a46a9e0e0d Bump revisions of XvMC libs 2014-02-03 15:57:56 +00:00
matthieu
f6224eae74 Update to xf86-video-intel 2.99.909
Tested by jsg@, kettenis@ and myself on a wide range of intel cards.
2014-02-03 15:54:42 +00:00
jsg
a9f7b7bce8 Enable hardware acceleration on haswell again.
Seems to work with the kernel changes I've just committed
on a desktop with hd 4600, and matthieu's haswell ult with hd 4400.
2013-11-11 03:16:50 +00:00
jsg
ec2836f36d disable blit acceleration on haswell for now
seems to mitigate some hangs seen by weerd@ and matthieu@
2013-09-10 03:10:31 +00:00
guenther
9a4b5cd1f6 Adjust the shared-lib versions for the intel driver to match the
versions expected by the time_t bump, this time done correctly

ok matthieu@
2013-08-15 03:34:19 +00:00
matthieu
acee5d3c07 Repair guenther's damage that I didn't ok. 2013-08-13 18:52:10 +00:00
guenther
655d680966 Bump the major to match the 64bit time_t change 2013-08-13 08:24:46 +00:00
kettenis
d890a3469b Add an OpenBSD-specific implementation of backlight control that uses the
appropriate wscons ioctls.

ok matthieu@
2013-03-19 20:47:22 +00:00
matthieu
aae4813ec8 regen 2013-03-19 07:32:33 +00:00
matthieu
07f2f0a5ae Update to xf86-video-intel 2.20.19.
A recent kernel with kernel modesetting support is required.
Thanks to jsg@ and kettenis@ for their work.
2013-03-18 18:38:18 +00:00
matthieu
07ce5c5054 Repair the legacy i810 driver. Problem reported and fix
successfully tested by schwarze@
2013-02-14 15:15:37 +00:00
jsg
d6d6af1958 Several changes to resolve screen corruption sometimes seen with dpms
on ivy bridge, mostly based on upstream drm code:

- remove a workaround which was in itself causing issues
- switch the order of disabling fdi rx & tx
- disable DPLL_SEL when disabling the crtc
- add a few extra delays

Most of this concerns the gen5+ crtc disable function, and thanks
to a bunch of testers this is known to still work fine on gen 5/6/7.

ok kettenis@ matthieu@
2013-02-01 11:09:26 +00:00
sobrado
c7c3d2e810 example should conform to constraint on section identifiers.
ok matthieu@
2013-01-22 21:37:09 +00:00
martynas
70cf9f81f9 Remove annoying is lvds, is crt debug stuff. OK jsg@. 2013-01-15 06:31:43 +00:00
matthieu
ae98b909ab Regen autotools files once more.
Apparently previous version was generated with some of my local changes
to use /usr/bin/libtool. This is causiing problems with the XvMC libs
shared libraries versions.
2013-01-03 15:00:26 +00:00
matthieu
a68216fe34 - sync the "legacy" i810 driver, used only on true i810 and i815
chipsets to the one in recent intel driver from X.Org.

- remove one of the output probe method in i830PreInit(). This method is
  calling functions that are normally forbidden in PreInit(). With
  xserver 1.13 this causes a fatal error at run time.

Tested by bluhm@, nick@ and shadchin@ back in september.
2012-12-19 21:19:48 +00:00
jsg
f5929fd67d Recent thinkpads try to set a backlight value one greater than the
maximum causing backlight control to be disabled.  Limit the backlight
values to the maximum so xbacklight will work.

Backlight control via the brightness buttons won't yet work as
that likely requires opregion/acpi bits.

Tested by jcs@ jasper@ phessler@ naddy@ and Amarendra Godbole
ok phessler@ kettenis@
2012-12-13 01:23:08 +00:00
matthieu
26135f75ee Check return value of I830MapMMIO().
Allows the server to fail with a useful error message instead of
segfaulting later, like reported by Alexei Malinin on misc@.
2012-12-02 17:59:25 +00:00
jsg
e9cb1c0fcd Make the hdmi modesetting code handle multiple display pipes.
Problem noticed by by rivo nurges and blambert@ after ivy bridge
support enabled multiple pipes for pch devices.

Fix based on what the upstream drm code does and
tested by rivo nurges, blambert@ and sthen@

ok kettenis@
2012-10-20 03:01:40 +00:00
jsg
97f5e30128 Add basic support for ivy bridge and fix several cases of register
access not being adjusted for the pch split, one of which prevented
multiple display pipes from working.  The third pipe on ivy bridge
remains disabled for now.

ok kettenis@ thanks to everyone who tested
2012-10-06 03:51:23 +00:00
kettenis
0c85c873e1 Improve hack to restore text mode on ironlake/sandy bridge.
tested by many
ok jsg@, deraadt@
2012-09-17 12:41:15 +00:00
matthieu
10ad330859 regen 2012-09-09 21:14:26 +00:00
matthieu
00e6140ee7 Add compat-api.h. 1st step to get this version of the intel driver
working with xserver 1.13.
2012-09-09 21:13:06 +00:00
matthieu
075b81cb95 Link libIntelXvMC.so to pthread-stubs, not pthreads.
Needed by future matthew@ patch.
2012-06-24 20:43:25 +00:00
matthieu
f4b3420bb7 Don't unload sub-modules in xserver 1.12. Its implementation is broken.
xf86UnloadSubModule() was a no-op in earlier versions.
2012-06-07 20:48:44 +00:00
matthieu
78d8060203 One more fix for new vgaHW ABI. 2012-05-06 10:38:50 +00:00
matthieu
f252027f1e Fix for new vgaHW ABI. 2012-05-06 09:24:42 +00:00
oga
563a654b98 Mostly fix rotation in the intel driver.
Since recent(ish) changes we can allocate roatated framebuffers with tiling.
This was not taken into account. Fix this for the most part:
1) i830_display_tiled needs to check tiling on rotated buffers too.
2) PipeSetBase needs to not only set offset to 0 for roated shadow buffers, it
also needs to 0 DSPTILEOFF x/y too.

There seems to be a remaining issue with damage or similar causing some latency
on rotated screens, I have not managed to find this yet.

Tested by sereral on tech@ ok matthieu a couple of weeks ago (his mail slipped
though the cracks, hence late commit).
2012-03-13 22:44:44 +00:00
matthieu
16bbf25500 Explicitely disable DRI on SandyBridge and above chipsets. It doesn't
work anyways, so prevent X from crashing. ok oga@
2012-01-31 07:47:28 +00:00
kettenis
13f8f43bf4 Add support for Sandy Bridge. Not perfect yet. Most notably 3D acceleration
is completely absent, and playing video doesn't work yet.  But support for
"normal" 2D stuff is pretty solid and it is really nice to be able to use
my laptop at the panel's native resolution and be able to suspend and resume
the machine.

tested by some
2011-12-21 21:25:02 +00:00
matthieu
70f1880f97 regen 2011-12-14 17:00:08 +00:00
oga
b932741cf2 Some files (used for generating other stuff) that I missed in the last commit.
Oops.
2011-11-29 12:41:53 +00:00
oga
1431ee95fe Update the intel driver to a more recent version based on more recent
upsteam code.

Backporting keeping UMS changes by me, some bugfixes from kettenis@.

Has been in snapshots for a while, committed on request so we can be
sure what people are running. This is a prerequesite for sandybridge
support but has those chipsets disabled for now until the correct code
has been added.
2011-11-29 12:39:02 +00:00
matthieu
bc1d244792 Let the intel driver build with xserver >= 1.10.
Reminded by shadchin@ ok oga@
2011-09-13 19:31:42 +00:00
matthieu
be5ccdb873 Avoid dereferencing a NULL pointer during VT switches when composite
is active.

Fix confirmed to fix observed crash by dcoppa@ canacar@. ok marco@.
2011-02-11 21:01:55 +00:00