Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2017 00:06:31 +0300
From:      Arto Pekkanen <isoa@kapsi.fi>
To:        freebsd-x11@freebsd.org
Subject:   Re: Lost HW OpenGL on intel
Message-ID:  <96c3793b-6c87-8acc-e196-504a3e422875@kapsi.fi>
In-Reply-To: <uh71sqiilh5.fsf@P142s.sics.se>
References:  <uh7k24j3h6t.fsf@P142s.sics.se> <uh7vao2gvrm.fsf@P142s.sics.se> <uh7efujpzz9.fsf@P142s.sics.se> <uh71sqiilh5.fsf@P142s.sics.se>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD
Content-Type: multipart/mixed; boundary="OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf";
 protected-headers="v1"
From: Arto Pekkanen <isoa@kapsi.fi>
To: freebsd-x11@freebsd.org
Message-ID: <96c3793b-6c87-8acc-e196-504a3e422875@kapsi.fi>
Subject: Re: Lost HW OpenGL on intel
References: <uh7k24j3h6t.fsf@P142s.sics.se> <uh7vao2gvrm.fsf@P142s.sics.se>
 <uh7efujpzz9.fsf@P142s.sics.se> <uh71sqiilh5.fsf@P142s.sics.se>
In-Reply-To: <uh71sqiilh5.fsf@P142s.sics.se>

--OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Okay, so you just gotta wait until the review has been done and Mesa
updated to 17.1.2?

On 17.6.2017 20:15, Bengt Ahlgren wrote:
> For the record: applying the patch for intel_screen.c from
> https://reviews.freebsd.org/D11148 to graphics/mesa-dri also works for
> the current Mesa 17.1.1, i.e., restores HW OpenGL for intel graphics on=

> 10.x.
>=20
> Bengt
>=20
> Bengt Ahlgren <bengt.ahlgren@ri.se> writes:
>=20
>> Bengt Ahlgren <bengt.ahlgren@ri.se> writes:
>>
>>> Bengt Ahlgren <bengt.ahlgren@ri.se> writes:
>>>
>>>> HW OpenGL stopped working for me - I think it was after the last mes=
a
>>>> update (17.1.1).  This is with 10.3-STABLE (r316723) and intel ironl=
ake
>>>> graphics.
>>>>
>>>> Xorg log says:
>>>>
>>>> [    18.061] (II) intel(0): DRI2: Enabled
>>>> [    18.061] (II) intel(0): DRI3: Disabled
>>>> [    18.069] (--) RandR disabled
>>>> [    18.110] (EE) AIGLX error: Calling driver entry point failed
>>>> [    18.111] (EE) AIGLX: reverting to software rendering
>>>> [    18.470] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
>>>> [    18.471] (II) AIGLX: Loaded and initialized swrast
>>>> [    18.471] (II) GLX: Initialized DRISWRAST GL provider for screen =
0
>>>>
>>>> I have these packages:
>>>>
>>>> mesa-dri-17.1.1                OpenGL hardware acceleration drivers =
for DRI2+
>>>> mesa-libs-17.1.1 OpenGL libraries that support GLX and EGL clients
>>>> xf86-video-intel-2.99.917.20170228_1 Driver for Intel integrated
>>>> graphics chipsets
>>>> xorg-server-1.18.4_1,1         X.Org X server and related programs
>>>>
>>>> Any advice?
>>>
>>> Some more information about this system:
>>>
>>> * Lenovo X201 with Core i7 M620
>>> * "Intel(R) HD Graphics" (Ironlake - fifth gen):
>>>
>>> vgapci0@pci0:0:2:0:     class=3D0x030000 card=3D0x215a17aa chip=3D0x0=
0468086 rev=3D0x02 hdr=3D0x00
>>>     vendor     =3D 'Intel Corporation'
>>>     device     =3D 'Core Processor Integrated Graphics Controller'
>>>     class      =3D display
>>>     subclass   =3D VGA
>>>     bar   [10] =3D type Memory, range 64, base 0xf2000000, size 41943=
04, enabled
>>>     bar   [18] =3D type Prefetchable Memory, range 64, base 0xd000000=
0, size 268435456, enabled
>>>     bar   [20] =3D type I/O Port, range 32, base 0x1800, size 8, enab=
led
>>>     cap 05[90] =3D MSI supports 1 message enabled with 1 message
>>>     cap 01[d0] =3D powerspec 2  supports D0 D3  current D0
>>>     cap 13[a4] =3D PCI Advanced Features: FLR TP
>>>
>>> * no xorg.conf - xorg selects intel driver
>>> * i915kms.ko is loaded when Xorg starts (but it
>>>   does not make any difference if it's loaded from /boot/loader.conf)=

>>> * VT console (kern.vty=3D"vt" in loader.conf)
>>>
>>> I'd be happy to provide more information and do some debugging, but w=
ill
>>> need instructions.
>>
>> I got a lead by running:
>>
>> $ LIBGL_DEBUG=3Dverbose glinfo|more
>> libGL: OpenDriver: trying /usr/local/lib/dri/i965_dri.so
>> [intel_init_bufmgr: 1317] Kernel 3.6 required.
>> libGL error: failed to create dri screen
>> libGL error: failed to load driver: i965
>>
>> Looking into that function (intel_init_bufmgr() in port graphics/libdr=
m,
>> mesa-17.1.1/src/mesa/drivers/dri/i965/intel_screen.c) reveals that it
>> tries this:
>>
>>    if (!intel_get_boolean(screen, I915_PARAM_HAS_WAIT_TIMEOUT)) {
>>       fprintf(stderr, "[%s: %u] Kernel 3.6 required.\n", __func__, __L=
INE__);
>>       return false;
>>    }
>>
>> But, I915_PARAM_HAS_WAIT_TIMEOUT does not exist on 10.x!
>>
>> It is missing in src/sys/dev/drm2/i915/i915_drm.h, so it fails, and
>> resorts to sw rendering.
>>
>> Bengt
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
>=20

--=20
Arto Pekkanen


--OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf--

--rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREIAAYFAllG61oACgkQTBivhqtJa27qawD/WfvSwQ8wDJZKIi33ZUigFC/k
6Oipckkf0lzdlC4b5GUA/A8FdbsN8y18nDhJ0I9Tg4rJkeyEQAWJura3/ay9KKMS
=9+au
-----END PGP SIGNATURE-----

--rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96c3793b-6c87-8acc-e196-504a3e422875>