Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537494 - =media-libs/mesa-10.4.2 - add USE=nine
Summary: =media-libs/mesa-10.4.2 - add USE=nine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-24 00:40 UTC by Adam Feldman
Modified: 2015-02-10 16:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Feldman gentoo-dev 2015-01-24 00:40:43 UTC
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
Comment 1 Adam Feldman gentoo-dev 2015-01-24 01:16:44 UTC
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>
) \
Comment 2 Matt Turner gentoo-dev 2015-01-24 20:03:27 UTC
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.
Comment 3 Adam Feldman gentoo-dev 2015-01-24 20:12:21 UTC
My apologies, I didn't even think to check if it was in the x11 overlay.
Comment 4 David Heidelberg (okias) 2015-02-05 16:33:52 UTC
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.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-02-08 19:11:19 UTC
+  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.
Comment 6 Adam Feldman gentoo-dev 2015-02-10 16:08:19 UTC
Thanks ^_^