You are not logged in.

#1 2022-04-09 15:44:01

Eirikr1848
Member
Registered: 2022-04-09
Posts: 10

Gallium i915G driver missing from Testing

The 21.x driver only provides legacy i915 driver support with OpenGL 1.4.

I prioritized the testing repos to try to get Mesa 22.0 -- and it seems that i915g is missing yet again.

Crocus is great for the Intel 965 and above iGPUs, but the new Gallium i915G driver brings OpenGL 2.1 support to the 915GM platforms along with improved performance. (Crocus does not work with the "smaller number" GPUs)

-----

For reference, 22.0 and the i915G driver worked find with the Debian repos, so I'm thinking its just not included with the meson_options.txt for whomever is compiling the driver here.

Offline

#2 2022-04-10 09:18:50

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 882
Website

Re: Gallium i915G driver missing from Testing

Some time I ago I had to disable some software rendering due to AVX (https://bugs.archlinux32.org/index.php? … task_id=39),
but actually I kept the gallium drivers (at least for pentium4). Maybe this broke also something else..
mesa 22.0 is extremely unstable for me also on 64-bit Arch (I get constant freezes and segfaults).. (Intel Corporation Mobile GM965/GL960)
I'm not thrilled at all at the moment and downgraded mesa to 21.0 on my daily driver machine.

Offline

#3 2022-04-12 10:25:13

Eirikr1848
Member
Registered: 2022-04-09
Posts: 10

Re: Gallium i915G driver missing from Testing

abaumann wrote:

Some time I ago I had to disable some software rendering due to AVX (https://bugs.archlinux32.org/index.php? … task_id=39),
but actually I kept the gallium drivers (at least for pentium4). Maybe this broke also something else..
mesa 22.0 is extremely unstable for me also on 64-bit Arch (I get constant freezes and segfaults).. (Intel Corporation Mobile GM965/GL960)
I'm not thrilled at all at the moment and downgraded mesa to 21.0 on my daily driver machine.

This is understanable. I also have Arch 64 and Manjaro (64) along with Mint LMDE (64) on a Dell D630 with the same GPU as you (GM965).

I noticed that using llvm-14 on Manjaro results in a much more stable system for some reason with Crocus.

This is anecdotal of course. But if there is anything you'd like me to build and test and submit results to you, please let me know. Gladly willing to test!

Offline

#4 2022-04-24 14:19:40

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 882
Website

Re: Gallium i915G driver missing from Testing

I had all gallium drivers disabled in mesa, I reworked it now, but the the reason for not supporting i915 go deeper
(see https://bugs.freedesktop.org/show_bug.cgi?id=93089)

Offline

#5 2023-04-29 22:19:38

Eirikr1848
Member
Registered: 2022-04-09
Posts: 10

Re: Gallium i915G driver missing from Testing

Hi there! poking back in! That bug no longer exists. Do you think i915 Gallium can be enabled? At one point I had it working with the 22.x branch of mesa. Userbenchmarking Link

So at least for the iGPU of the Dell Latitude D410 - the 910GM w/224MB shared RAM - OpenGL 2.1, GLES 2.0 things seem to work great.

(I tried compiling both mesa and mesa-git and then get a black blinking cursor with mesa-git) Tried nomodeset, removing xf86-*-intel, and then I guess I'm not sure what else to try... but it really should work, because it has, and is performant)

When trying to compile mesa on Arch32 or Arch systems I receive:

mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build:30:15: ERROR: Unknown variable "libintel_common".

A full log can be found at /home/eirikr/Playground/mesa-i915g/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...

So if we look at mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build we can then find the offending line, which here has been corrected from libintel_common

libi915drm = static_library(
  'i915drm',
  files(
    'i915_drm_batchbuffer.c', 'i915_drm_buffer.c', 'i915_drm_fence.c',
    'i915_drm_winsys.c'
  ),
  include_directories : [
    inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers
  ],
    link_with : [libintel_common],
  dependencies : [dep_libdrm, dep_libdrm_intel],
)

So here is where was stuck on both 32-bit and 64-bit systems for a bit during 23.0.x beta and then my attention shifted. Back to this project. (On the 64-bit machine side have many OTA DVRs for people that I support in exchange for a coffee)

So then alright. for the specific meson.build in that folder I just did

cp meson.build meson.build.patched

and then made the change in .patched to replace libintel_common with libi915drm]

Now:

diff -u mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build.patched > fix-libintel_common.patch

And here are the contents of fix-libintel_common.patch:

-- src/mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build     2023-04-20 16:06:54.000000000 -0700
+++ src/mesa-23.0.3/src/gallium/winsys/i915/drm/meson.build.patched     2023-04-29 15:50:41.423603504 -0700
@@ -27,6 +27,6 @@
   include_directories : [
     inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers
   ],
-  link_with : [libintel_common],
+  link_with : [libi915drm],
   dependencies : [dep_libdrm, dep_libdrm_intel],
 )

And then Added this to to PKGBUILD after build() {:

   cd "$srcdir/$pkgname-$pkgver"
    patch -p1 -i ../fix-libintel_common.patch
    #Remaining Build Items

And now my attention must shift. I hope someone is able to find something useful from this!

Last edited by Eirikr1848 (2023-04-30 09:08:55)

Offline

#6 2023-04-30 06:28:08

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 882
Website

Re: Gallium i915G driver missing from Testing

Thanks a lot for investigating this one. :-)

I'll see whether I can integrate that into the build..

Offline

#7 2023-04-30 15:03:11

Eirikr1848
Member
Registered: 2022-04-09
Posts: 10

Re: Gallium i915G driver missing from Testing

abaumann wrote:

Thanks a lot for investigating this one. :-)

I'll see whether I can integrate that into the build..

Thanks, sorry for the delay. Let me know if you run into any issues with it. Hopefully I can be more responsive than a one-year delay. smile

Offline

#8 2023-05-12 17:45:28

sneakernets
Member
Registered: 2023-05-12
Posts: 1

Re: Gallium i915G driver missing from Testing

Eirikr1848 wrote:
abaumann wrote:

Thanks a lot for investigating this one. :-)

I'll see whether I can integrate that into the build..

Thanks, sorry for the delay. Let me know if you run into any issues with it. Hopefully I can be more responsive than a one-year delay. smile

Thanks for figuring this out! I own one of those Asus netbooks that require this driver. Having 2.1 support would make things so much easier!

Offline

Board footer

Powered by FluxBB