Mesa 10.4.2 is the first version of Mesa in portage to feature the Gallium Nine patchset. This is enabled with the configure option nine. I recommend using "d3d9" for the use flag. Based on the overlay used by one of the Gallium Nine developers, (https://github.com/okias/ixit), the following should be sufficient: --- mesa-10.4.2.ebuild 2015-01-13 18:01:12.000000000 -0500 +++ mesa-10.4.2-r1.ebuild 2015-01-23 19:37:47.835108188 -0500 @@ -54,6 +54,7 @@ +udev vaapi vdpau wayland xvmc xa kernel_FreeBSD" REQUIRED_USE=" + d3d9? ( gallium dri3 ) llvm? ( gallium ) opencl? ( gallium @@ -260,6 +261,7 @@ if use gallium; then myconf+=" + $(use_enable d3d9 nine) $(use_enable llvm gallium-llvm) $(use_enable openmax omx) $(use_enable r600-llvm-compiler) @@ -316,6 +318,7 @@ --enable-glx \ --enable-shared-glapi \ $(use_enable !bindist texture-float) \ + $(use_enable d3d9) \ $(use_enable debug) \ $(use_enable dri3) \ $(use_enable egl) \ Reproducible: Always
Compiled successfully. My apologies, forgot to add it to IUSE, also included metadata.xml: --- /usr/portage/media-libs/mesa/mesa-10.4.2.ebuild 2015-01-13 18:01:12.000000000 -0500 +++ mesa-10.4.2-r1.ebuild 2015-01-23 19:52:39.608113086 -0500 @@ -49,11 +49,12 @@ done IUSE="${IUSE_VIDEO_CARDS} - bindist +classic debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm +nptl + bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm +nptl opencl osmesa pax_kernel openmax pic r600-llvm-compiler selinux +udev vaapi vdpau wayland xvmc xa kernel_FreeBSD" REQUIRED_USE=" + d3d9? ( gallium dri3 ) llvm? ( gallium ) opencl? ( gallium @@ -260,6 +261,7 @@ if use gallium; then myconf+=" + $(use_enable d3d9 nine) $(use_enable llvm gallium-llvm) $(use_enable openmax omx) $(use_enable r600-llvm-compiler) @@ -316,6 +318,7 @@ --enable-glx \ --enable-shared-glapi \ $(use_enable !bindist texture-float) \ + $(use_enable d3d9) \ $(use_enable debug) \ $(use_enable dri3) \ $(use_enable --- /usr/portage/media-libs/mesa/metadata.xml 2014-12-09 16:31:12.000000000 -0500 +++ metadata.xml 2015-01-23 19:53:28.222113353 -0500 @@ -5,6 +5,7 @@ <use> <flag name='bindist'>Disable patent-encumbered ARB_texture_float, EXT_texture_shared_exponent, and EXT_packed_float extensions.</flag> <flag name='classic'>Build drivers based on the classic architecture.</flag> + <flag name='d3d9'>Enable Gallium Nine Direct3D9 support</flag> <flag name='dri3'>Enable DRI3 support.</flag> <flag name='egl'>Enable EGL support.</flag> <flag name='gallium'>Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.</flag> ) \
10.4.3 had ~40 d3d9 patches in it. I'm certainly not adding the flag to anything before that. I'm not really sure what extra maintenance is involved or whether d3d9 is in good enough shape that we should expose it yet. Note that the -9999 ebuild in the overlay already has the flag.
My apologies, I didn't even think to check if it was in the x11 overlay.
Hello, 10.4.3 should include lot of Nine fixes, could you add d3d9 flag same way as it's used for -9999? Main development going in -9999, but 10.4.x should be normally usable.
+ 08 Feb 2015; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +mesa-10.4.4.ebuild, metadata.xml: + Version bump. Add d3d9 flag, bug #537494.
Thanks ^_^