USE=openvg does not work now and has to be disabled. configure: error: Cannot enable OpenVG, because egl_gallium has been removed and OpenVG hasn't been integrated into standard libEGL yet mesa-10.2-dont-require-llvm-for-r300.patch does not apply. I renamed the mesa-10.3.5.ebuild to mesa-10.4.0.ebuild , disabled the patch for me and emerged it with --nodeps because it wanted to pull in the masked versions of eselect-opengl and glproto. The fetch failed because it creates the URL wrong.: ftp://ftp.freedesktop.org/pub/mesa/10.4/MesaLib-10.4.0.tar.bz2 correct is: ftp://ftp.freedesktop.org/pub/mesa/10.4.0/MesaLib-10.4.0.tar.bz2 I downloaded this file by hand to distfiles folder. mesa-10.4.0 is masked in /usr/portage/profiles/package.mask >=media-libs/mesa-10.3.5-r1 in eselect-opengl-1.2.7.ebuild this entry blocks mesa-10.4.0 !>=media-libs/mesa-10.3.5-r1 We have to decide between the old and the new eselect-opengl model. ----------------------------------------------------- Mesa 10.4 Release Notes / December 14, 2014 Mesa 10.4 is a new development release. People who are concerned with stability and reliability should stick with a previous release or wait for Mesa 10.4.1. Mesa 10.4 implements the OpenGL 3.3 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don't support all the features required in OpenGL 3.3. OpenGL 3.3 is only available if requested at context creation because compatibility contexts are not supported. MD5 checksums TBD. New features Note: some of the new features are only available with certain drivers. GL_ARB_conditional_render_inverted on nv50 GL_ARB_sample_shading on r600 GL_ARB_texture_view on nv50, nvc0 GL_ARB_clip_control on nv50, nvc0, r300, r600, radeonsi, llvmpipe, softpipe GL_KHR_context_flush_control on all drivers Bug fixes This list is likely incomplete. Bug 79963 - [ILK Bisected]some piglit and ogles2conform cases fail Bug 29661 - MSVC built u_format_test fails on Windows Bug 38873 - [855gm] gnome-shell misrendered Bug 54372 - GLX_INTEL_swap_event crashes driver when swapping window buffers Bug 60879 - [radeonsi] X11 can't start with acceleration enabled Bug 61415 - Clover ignores --with-opencl-libdir path Bug 64471 - Radeon HD6570 lockup in Brütal Legend with HyperZ Bug 66184 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed. Bug 67672 - [llvmpipe] lp_test_arit fails on old CPUs Bug 69200 - [Bisected]Piglit glx/glx-multithread-shader-compile aborted Bug 70410 - egl-static/Makefile: linking fails with llvm >= 3.4 Bug 72685 - [radeonsi hyperz] Artifacts in Unigine Sanctuary Bug 72819 - [855GM] Incorrect drop shadow color on windows and strange white rectangle when showing/hiding GLX-dock... Bug 74563 - Surfaceless contexts are not properly released by DRI drivers Bug 74863 - [r600g] HyperZ broken on RV770 and CYPRESS (Left 4 Dead 2 trees corruption) bisected! Bug 75011 - [hyperz] Performance drop since git-01e6371 (disable hyperz by default) with radeonsi Bug 75112 - Meta Bug for HyperZ issues on r600g and radeonsi Bug 76252 - Dynamic loading/unloading of opengl32.dll results in a deadlock Bug 76861 - mid3 generates slow code for constant arguments Bug 77957 - Variably-indexed constant arrays result in terrible shader code Bug 78468 - Compiling of shader gets stuck in infinite loop Bug 78770 - [SNB bisected]Webglc conformance/textures/texture-size-limit.html fails Bug 79155 - [Tesseract Game] Global Illumination: Medium Causes Color Distortion Bug 79462 - [NVC0/Codegen] Shader compilation falis in spill logic Bug 80011 - [softpipe] tgsi/tgsi_exec.c:2023:exec_txf: Assertion `0' failed. Bug 80012 - [softpipe] draw/draw_gs.c:113:tgsi_fetch_gs_outputs: Assertion `!util_is_inf_or_nan(output[slot][0])' failed. Bug 80050 - [855GM] Incorrect drop shadow color under windows in Cinnamon persists with MESA 10.1. Bug 80247 - Khronos conformance test ES3-CTS.gtf.GL3Tests.transform_feedback.transform_feedback_vertex_id fails Bug 80561 - Incorrect implementation of some VDPAU APIs. Bug 80615 - Files in bellagio directory [omx tracker] don't respect installation folder Bug 80848 - [dri3] Building mesa fails with dri3 enabled Bug 81680 - [r600g] Firefox crashes with hardware acceleration turned on Bug 82255 - [VP2] Chroma planes are vertically stretched during VDPAU playback Bug 82472 - piglit 16385-consecutive-chars regression Bug 82537 - Stunt Rally GLSL compiler assertion failure Bug 82538 - Super Maryo Chronicles fails with st/mesa assertion failure Bug 82539 - vmw_screen_dri.lo In file included from vmw_screen_dri.c:41: vmwgfx_drm.h:32:17: error: drm.h: No such file or directory Bug 82796 - [IVB/BYT-M/HSW/BDW Bisected]Synmark2_v6.0_OglTerrainFlyInst/OglTerrainPanInst cannot run as image validation failed Bug 82804 - unreal engine 4 rendering errors Bug 82828 - Regression: Crash in 3Dmark2001 Bug 82846 - [BDW Bisected] Gpu hang when running Lightsmark v2008/Warsow v1.0/Xonotic v0.7/unigine-demos Bug 82881 - test_vec4_register_coalesce regression Bug 82882 - [swrast] piglit glsl-fs-uniform-bool-1 regression Bug 82921 - layout(location=0) emits error >= MAX_UNIFORM_LOCATIONS due to integer underflow Bug 82929 - [BDW Bisected]glxgears causes X hang Bug 82932 - [SNB+ Bisected]Ogles3conform ES3-CTS.shaders.indexing.vector_subscript.vec3_static_loop_subscript_write_direct_read_vertex fails Bug 83079 - [NVC0] Dota 2 (Linux native and Wine) crash with Nouveau Drivers Bug 83080 - [SNB+ Bisected]ES3-CTS.shaders.loops.do_while_constant_iterations.mixed_break_continue_fragment fails Bug 83081 - [BDW Bisected]Piglit spec_ARB_sample_shading_builtin-gl-sample-mask_2 is core dumped Bug 83127 - [ILK Bisected]Piglit glean_texCombine fails Bug 83148 - Unity invisible under Ubuntu 14.04 and 14.10 Bug 83355 - FTBFS: src/mesa/program/program_lexer.l:122:64: error: unknown type name 'YYSTYPE' Bug 83380 - Linking fails when not writing gl_Position. Bug 83418 - EU IV is incorrectly rendered after git1409011930.d571f2 Bug 83432 - r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] Bug 83463 - [swrast] piglit glsl-vs-clamp-1 regression Bug 83468 - [UBO] Using bool from UBO as if-statement condition asserts Bug 83500 - si_dma_copy_tile causes GPU hangs Bug 83506 - [UBO] row_major layout ignored inside structures Bug 83533 - [UBO] nested structures don't get appropriate padding Bug 83573 - [swrast] piglit fs-op-not-bool-using-if regression Bug 83574 - [llvmpipe] [softpipe] piglit arb_explicit_uniform_location-use-of-unused-loc regression Bug 83741 - [UBO] row_major layout partially ignored for arrays of structures Bug 83777 - [regression] ilo fails to build Bug 83934 - Structures must have same name to be considered same type. Bug 84140 - mplayer crashes playing some files using vdpau output Bug 84145 - UE4: Realistic Rendering Demo render blue Bug 84178 - Big glamor regression in Xorg server 1.6.99.1 GIT: x11perf 1.5 Test: PutImage XY 500x500 Square Bug 84355 - texture2DProjLod and textureCubeLod are not supported when using GLES. Bug 84529 - [IVB bisected] glean fragProg1 CMP test failed Bug 84538 - lp_test_format.c:226:4: error: too few arguments to function ‘gallivm_create’ Bug 84539 - brw_fs_register_coalesce.cpp:183: bool fs_visitor::register_coalesce(): Assertion `src_size <= 11' failed. Bug 84557 - [HSW] "Emit ELSE/ENDIF JIP with type D on Gen 7" causes Atomic Afterlife and GPU hangs Bug 84651 - Distorted graphics or black window when running Battle.net app on Intel hardware via wine Bug 84662 - Long pauses with Unreal demo Elemental on R9270X since : Always flush the HDP cache before submitting a CS to the GPU Bug 84777 - [BSW]Piglit spec_glsl-1.50_execution_geometry-basic fails Bug 84807 - Build issue starting between bf4aecfb2acc8d0dc815105d2f36eccbc97c284b and a3e9582f09249ad27716ba82c7dfcee685b65d51 Bug 85189 - llvm/invocation.cpp: In function 'void {anonymous}::optimize(llvm::Module*, unsigned int, const std::vector<llvm::Function*>&)': llvm/invocation.cpp:324:18: error: expected type-specifier Bug 85267 - vlc crashes with vdpau (Radeon 3850HD) [r600] Bug 85377 - lp_test_format failure with llvm-3.6 Bug 85425 - [bisected] Compiler error in clip control operations in meta Bug 85429 - indirect.c:296: multiple definition of `__indirect_glNewList' Bug 85454 - Unigine Sanctuary with Wine crashes on Mesa Git Bug 85647 - Random radeonsi crashes with mesa 10.3.x Bug 85683 - [i965 Bisected]Piglit shaders_glsl-vs-raytrace-bug26691 segfault Bug 85691 - 'glsl: Drop constant 0.0 components from dot products.' broke piglit shaders/glsl-gnome-shell-dim-window and a few others with Gallium Bug 86025 - src\glsl\list.h(535) : error C2143: syntax error : missing ';' before 'type' Bug 86089 - [r600g][mesa 10.4.0-dev] shader failure - r600_sb::bc_finalizer::cf_peephole() when starting Second Life Bug 86145 - Pipeline statistic counter values for VF always 0 Bug 86618 - [NV96] neg modifiers not working in MIN and MAX operations Bug 86760 - mesa doesn't build: recipe for target 'r600_llvm.lo' failed Bug 86764 - [SNB+ Bisected]Piglit glean/pointSprite fails Bug 86788 - (bisected) 32bit UrbanTerror 4.1 timedemo sse4.1 segfault... Changes The environment variable GALLIUM_MSAA that forced a multisample GLX visual was removed.
One of the bugs in 10.3.x gives you a black screen in the Battle.net app under wine with Intel HD graphics. mesa 10.4.0 fixes that (actually I'm running 10.4.0rc4 for a while now without problems).
Created attachment 392692 [details, diff] mesa-10.4-dont-require-llvm-for-r300.patch
my test so far with a copied mesa-10.3.5.ebuild to mesa-10.4.1.ebuild Copied the https://bugs.gentoo.org/attachment.cgi?id=392692 patch to files dir. --- mesa-10.3.5.ebuild 2014-12-08 19:50:55.000000000 +0100 +++ mesa-10.4.1.ebuild 2014-12-30 17:17:45.629199036 +0100 @@ -207,7 +207,7 @@ fi # relax the requirement that r300 must have llvm, bug 380303 - epatch "${FILESDIR}"/${PN}-10.2-dont-require-llvm-for-r300.patch + epatch "${FILESDIR}"/${PN}-10.4-dont-require-llvm-for-r300.patch # fix for hardened pax_kernel, bug 240956 [[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch ----------------------------------------------------- create manifest and fetch was no problem. merging: first it is masked: # /usr/portage/profiles/package.mask: # Michał Górny <mgorny@gentoo.org> (08 Dec 2014) # Complete redesign, masked for testing. after unmasking it I get: emerge -va1 =mesa-10.4.1 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U #] media-libs/mesa-10.4.1::overlay_jl [10.4.0::overlay_jl] USE="classic dri3 egl gallium gbm llvm nptl opencl openmax r600-llvm-compiler udev vdpau xa xvmc -bindist -debug -gles1 -gles2 -openvg -osmesa -pax_kernel -pic (-selinux) -wayland" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nouveau r100 r200 r300 r600 radeon (-freedreno) -i915 -i965 -ilo -intel -radeonsi -vmware" 0 KiB [blocks B ] >=media-libs/mesa-10.3.5-r1 (">=media-libs/mesa-10.3.5-r1" is blocking app-admin/eselect-opengl-1.2.7) Total: 1 package (1 upgrade), Size of downloads: 0 KiB Conflict: 1 block (1 unsatisfied) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. (app-admin/eselect-opengl-1.2.7:0/0::gentoo, installed) pulled in by >=app-admin/eselect-opengl-1.2.6 required by (x11-proto/glproto-1.4.17:0/0::gentoo, installed) >=app-admin/eselect-opengl-1.0.8 required by (x11-base/xorg-server-1.16.2.901:0/1.16.1::gentoo, installed) >=app-admin/eselect-opengl-1.2.7 required by (media-libs/mesa-10.4.1:0/0::overlay_jl, ebuild scheduled for merge) (media-libs/mesa-10.4.1:0/0::overlay_jl, ebuild scheduled for merge) pulled in by >=media-libs/mesa-9.1.6[egl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[egl,abi_x86_64(-)]) required by (media-libs/gst-plugins-bad-1.2.4-r1:1.0/1.0::gentoo, installed) media-libs/mesa required by (media-libs/libprojectm-2.1.0-r1:0/0::gentoo, installed) media-libs/mesa[egl,gbm] required by (x11-base/xorg-server-1.16.2.901:0/1.16.1::gentoo, installed) media-libs/mesa[egl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (media-libs/mesa[egl,abi_x86_64(-)]) required by (dev-qt/qtgui-4.8.6-r1:4/4::gentoo, installed) media-libs/mesa required by (media-libs/libtxc_dxtn-1.0.1-r1:0/0::gentoo, installed) media-libs/mesa required by (app-emulation/emul-linux-x86-opengl-20140508:0/0::gentoo, installed) >=media-libs/mesa-9.1.6[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[abi_x86_64(-)]) required by (virtual/opengl-7.0-r1:0/0::gentoo, installed) >=media-libs/mesa-9.1.6[egl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[egl,abi_x86_64(-)]) required by (x11-libs/cairo-9999:0/0::gentoo, installed) media-libs/mesa[egl?,gles1?,gles2?] (media-libs/mesa[egl]) required by (x11-apps/mesa-progs-8.2.0:0/0::gentoo, installed) >=media-libs/mesa-9.1.6[egl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[egl,abi_x86_64(-)]) required by (x11-libs/libva-1.4.1:0/0::gentoo, installed) >=media-libs/mesa-9.1.6[opencl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-libs/mesa-9.1.6[opencl,abi_x86_64(-)]) required by (virtual/opencl-0-r4:0/0::gentoo, installed) =mesa-10.4.1 media-libs/mesa[egl] required by (net-libs/webkit-gtk-2.4.7:3/25::gentoo, installed) media-libs/mesa[egl] required by (net-libs/webkit-gtk-2.4.7-r200:2/2::gentoo, installed) >=media-libs/mesa-7.10 required by (kde-base/kwin-4.11.14:4/4.11::gentoo, installed) >=media-libs/mesa-9.2.0[nptl=] (>=media-libs/mesa-9.2.0[nptl]) required by (x11-base/xorg-server-1.16.2.901:0/1.16.1::gentoo, installed) For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked I have to emerge it still with --nodeps . Patches apply. compile and merge wents fine. * QA Notice: Unrecognized configure options: * * --disable-gallium-egl * --with-opencl-libdir * --disable-gallium-egl * --with-opencl-libdir * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * r200_sanity.c:626:33: warning: iteration 366u invokes undefined behavior [-Waggressive-loop-optimizations]
Created attachment 392870 [details] mesa-10.4.1.ebuild (In reply to jospezial from comment #0) > We have to decide between the old and the new eselect-opengl model. It looks like a decision has been made: The new model is no longer masked. So here's the ebuild I'm using for 10.4.1, it's based on the ebuild for 10.3.5-r1 from the main tree and the 9999 ebuild from the ixit overlay and comment #3. This also adds the d3d9 USE flag. Credit for this goes to the ixit overlay.
I tested the ebuild from #c4 The d3d9 USE flag should be added to /usr/portage/profiles/use.desc >>> Completed installing mesa-10.4.1 into /var/tmp/portage/media-libs/mesa-10.4.1/image/ * QA Notice: Unrecognized configure options: * * --with-opencl-libdir * --with-opencl-libdir * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * r200_sanity.c:626:33: warning: iteration 366u invokes undefined behavior [-Waggressive-loop-optimizations] so something is wrong in line 290 # opencl stuff if use opencl; then myconf+=" $(use_enable opencl) --with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" --with-clang-libdir="${EPREFIX}/usr/lib" " fi * QA Notice: Missing soname symlink(s): * * usr/lib64/libXvMCgallium.so.1 -> libXvMCnouveau.so.1.0.0 * usr/lib64/libXvMCgallium.so.1 -> libXvMCr600.so.1.0.0
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e6fc0647a93f7091068d1a75ba5948b9bff5da3 configure: remove non-functional --with-opencl-libdir The parameter used to control where the gallium pipe-drivers were installed, but was broken since commit 45270fb0fd1abd7619933c2845f9dc74cdfbe6fd Author: Matt Turner <mattst88@gmail.com> Date: Thu Sep 13 10:45:01 2012 -0700 targets/pipe-loader: Convert to automake Considering that nowadays the pipe-drivers can be used by more than just the opencl target, even fixing this up will not be the best idea.
Meanwhile, 10.4.2 was released today [1]. Summary should be updated accordingly :) [1] http://lists.freedesktop.org/archives/mesa-dev/2015-January/074231.html
Bumped