Hi, Gallium entered the mainline Mesa code-base a few days ago, so i wrote a small patch to enable it. ;) Reproducible: Always
Created attachment 184008 [details, diff] Patch to enable gallium support
Just a quick question, why are you disabling the intel gallium driver? Is it broken? Is it enabled by default? If it doesn't do any harm, then you might as well just leave out the option. Cheers
Yes it is enabled by default : ./configure --help : --disable-gallium build gallium [default=enabled] --disable-gallium-intel build gallium intel [default=enabled] --enable-gallium-radeon build gallium radeon [default=disabled] --enable-gallium-nouveau build gallium nouveau [default=disabled] I thought it was better to disable it by default but as it doesn't do any harm, we can keep it enabled. Cheers
Ahha, I think I get why you wrote your patch that way. :) The thing is, an ebuild shouldn't depend on the default values that the configure script has. So I think it should be something like that instead : myconf="${myconf} $(use_enable gallium)" if use gallium; then myconf="${myconf} $(use_enable video_cards_nouveau gallium-nouveau) $(use_enable video_cards_ati gallium-radeon) $(use_enable video_cards_intel gallium-intel)" fi (NB, I just wrote this code directly in bugzilla, it's 100% untested) With this kind of code, the ebuild never assumes that gallium is enabled or disabled and it reduces bugs down the line. Could you try cooking a new patch with something like that? Cheers :)
> Could you try cooking a new patch with something like that? I was bit boored so i cooked it myself ;] So now 9999 ebuilds supports noveau, radeonhd and in addition this mess (gallium) :]
Please add DRI2 state tracker support in case NOUVEAU. Thanks Example for manual compiling: ./configure --enable-debug --enable-glx-tls --disable-asm --with-dri-drivers= --disable-gallium-intel --enable-gallium-nouveau --with-state-trackers=glx,dri2 --with-demos=
(In reply to comment #6) > Please add DRI2 state tracker support in case NOUVEAU. Thanks Any reason why you would want to add it only when building nouveau? Thanks
Created attachment 186226 [details] Patch to fix nouveau build. Added DRI2 tracker
Only nouveau need it for build, but you can do it default for all gallium drivers...
Fixed, OK.