Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796764 - media-libs/mesa-9999 enable i965 gallium driver aka crocus
Summary: media-libs/mesa-9999 enable i965 gallium driver aka crocus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 4 votes (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-19 17:13 UTC by mercuriete
Modified: 2021-11-06 20:59 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild with crocus support (mesa-9999.ebuild,14.64 KB, text/plain)
2021-06-26 19:28 UTC, dolphinling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mercuriete 2021-06-19 17:13:45 UTC
I want to compile mesa new crocus driver for haswell gpu using

i965 && gallium use flag

right now there is only i965 classic driver.


more information on this new driver on upstream:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11146


thanks for your work!




Reproducible: Always
Comment 1 dolphinling 2021-06-26 19:28:42 UTC
Created attachment 719478 [details]
ebuild with crocus support

Here's an ebuild that seems to work for me.

It's not ready to commit because a) I don't know what I'm doing, I just copied code wherever looked reasonable, and b) I didn't even pay attention to code cleanliness or alphabetical order or things like that. But for testing, it seems to work.
Comment 2 Arseny Solokha 2021-08-08 13:04:20 UTC
(In reply to dolphinling from comment #1)
> Created attachment 719478 [details]
> ebuild with crocus support
> 
> Here's an ebuild that seems to work for me.
> 
> It's not ready to commit because a) I don't know what I'm doing, I just
> copied code wherever looked reasonable, and b) I didn't even pay attention
> to code cleanliness or alphabetical order or things like that. But for
> testing, it seems to work.

crocus apparently saw its first public release in Mesa 21.2.

I've came up w/ similar patch which is obvious, and can confirm that the driver obviously works. I've neither tested it using Mesa test suite nor benchmarked it against i965 on my GM965 which I still happen to have around, though.

But I dont' see much point in exposing it in the ebuild. It won't magically double performance, or enable newer OpenGL features, or something. Or will classic drivers be removed from Mesa any time soon?
Comment 3 mercuriete 2021-08-10 18:55:19 UTC
(In reply to Arseny Solokha from comment #2)
> (In reply to dolphinling from comment #1)
> > Created attachment 719478 [details]
> > ebuild with crocus support
> > 
> > Here's an ebuild that seems to work for me.
> > 
> > It's not ready to commit because a) I don't know what I'm doing, I just
> > copied code wherever looked reasonable, and b) I didn't even pay attention
> > to code cleanliness or alphabetical order or things like that. But for
> > testing, it seems to work.
> 
> crocus apparently saw its first public release in Mesa 21.2.
> 
> I've came up w/ similar patch which is obvious, and can confirm that the
> driver obviously works. I've neither tested it using Mesa test suite nor
> benchmarked it against i965 on my GM965 which I still happen to have around,
> though.
> 
> But I dont' see much point in exposing it in the ebuild. It won't magically
> double performance, or enable newer OpenGL features, or something. Or will
> classic drivers be removed from Mesa any time soon?

Classic drivers are going to dissapear.

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10557

old drivers will stay on "amber" like a fossil inside a LTS branch.

but the tar.gz releases won't contain any code about classic drivers.

i915g is already being shiped on gentoo but I wanted to have gallium for newer graphic cards.


on intel side will be only on master branch the following drivers:
i915g, crocus and iris.

on amd side will only stay
radeonsi and r600g

gently ping to mattst88@gentoo.org
Comment 4 Matt Turner gentoo-dev 2021-08-10 18:58:08 UTC
Thanks for the ping and sorry for not handling this sooner. I'll try to get to it ASAP.
Comment 5 mercuriete 2021-08-10 19:01:29 UTC
thank you for answering so quick.

thanks for your work :)
Comment 6 Larry the Git Cow gentoo-dev 2021-10-30 23:04:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f20b8394b687bc73339d9acbd46ff4d1f884f330

commit f20b8394b687bc73339d9acbd46ff4d1f884f330
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-10-30 20:33:27 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-10-30 23:04:13 +0000

    media-libs/mesa: Add VIDEO_CARDS=crocus
    
    Closes: https://bugs.gentoo.org/796764
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 5 ++++-
 profiles/arch/amd64/use.mask     | 1 +
 profiles/arch/base/use.mask      | 1 +
 profiles/arch/x86/use.mask       | 1 +
 profiles/desc/video_cards.desc   | 1 +
 5 files changed, 8 insertions(+), 1 deletion(-)
Comment 7 mercuriete 2021-11-06 20:59:17 UTC
Thank you for your work :)