AgeCommit message (Collapse)AuthorFilesLines
2014-10-12docs: Add sha256 sums for the 10.2.9 release10.2Emil Velikov1-1/+3
Signed-off-by: Emil Velikov <>
2014-10-12Add release notes for the 10.2.9 releasemesa-10.2.9Emil Velikov1-0/+99
Signed-off-by: Emil Velikov <>
2014-10-12Update VERSION to 10.2.9Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <>
2014-10-03st/xa: Fix regression in xa_yuv_planar_blit()Thomas Hellstrom2-0/+12
Commit "st/xa: scissor to help tilers" broke xa_yuv_planar_blit() and vmwgfx textured video. Fix this by implementing scissors also in the yuv draw path. Signed-off-by: Thomas Hellstrom <> Reviewed-by: Sinclair Yeh <> Cc: Rob Clark <> Cc: "10.2 10.3" <> (cherry picked from commit 46537f1d03ba6de83be70ac574f633bb4342a327)
2014-09-28st/dri: remove GALLIUM_MSAA and __GL_FSAA_MODE environment variablesMarek Olšák1-35/+0
Some users don't understand that these variables can break OpenGL. The general is rule is that if an app supports MSAA, you mustn't use GALLIUM_MSAA. For example, if an app has an 8xMSAA FBO and GALLIUM_MSAA=4 is set, resolving the FBO to the back buffer will be rejected which will look like this on all gallium drivers: The environment variables also have no effect on modern apps like TF2, but there is still a performance hit due to wasted bandwidth and VRAM. In a nutshell, it does more harm than good. Cc: 10.2 10.3 <> Reviewed-by: Michel Dänzer <> (cherry picked from commit 8449121971ce1db03fea19665d314e523fdc10dd)
2014-09-27radeonsi: properly destroy the GS copy shader and scratch_bo for computeMarek Olšák2-3/+7
Cc: 10.2 10.3 <> Reviewed-by: Michel Dänzer <> (cherry picked from commit dc05a9e4e089d66a2ffe8919857ad9660e108c28) [Emil Velikov: remove unref scratch_bo, s/si_shader/si_pipe_shader/] Signed-off-by: Emil Velikov <>
2014-09-27radeonsi: release GS rings at context destructionMarek Olšák1-0/+2
Cc: 10.2 10.3 <> Reviewed-by: Michel Dänzer <> (cherry picked from commit 711623f7c8113d43f2d54ebfe5cbed3d406a3c79) [Emil Velikov: s/ring/ring.buffer/] Signed-off-by: Emil Velikov <> Compute LLVM_VERSION_PATCH using llvm-configTom Stellard1-5/+4
This is the only guaranteed way get the patch level for llvm, since the define cannot always be found in config.h depending on the version of llvm or the build system used. CC: 10.2 10.3 <> Reviewed-by: Jonathan Gray <> (cherry picked from commit ec566e0f169dac33814463e913e5d844a782c61e)
2014-09-27nv50/ir: avoid deleting pseudo instructions too earlyIlia Mirkin1-1/+10
What happens is that a SPLIT operation is part of the spill node, and as a pseudo op, the instruction gets erased after processing its first def. However the later defs still need to refer to it, so instead delay deleting until after that whole RA node is done processing. Bugzilla: Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 0147c10c5f00b43696ba660aab604d674a75e83c)
2014-09-27i915: Fix black buffers when importing prime fdsAndreas Pokorny1-0/+2
Width and Height of the imported image was never initialized from the imported bo. Cc: 10.2 10.3 <> Signed-off-by: Andreas Pokorny <> Reviewed-by: Daniel Stone <> (cherry picked from commit df341320c9be34c40b76e42510640120e0ebe0d3)
2014-09-27egl/drm: expose KHR_image_pixmap extensionAndreas Pokorny1-0/+1
This changes enables EGL_KHR_image_pixmap in the egl drm platform, which is implemented there but has not been advertised yet. Cc: 10.2 10.3 <> Signed-off-by: Andreas Pokorny <> Reviewed-by: Daniel Stone <> (cherry picked from commit 53b614bfd3c12368347b2953121e815add68d90b) Conflicts: src/egl/drivers/dri2/platform_drm.c
2014-09-27gallivm: fix idivRoland Scheidegger1-7/+5
ffeb77c7b0552a8624e46e65d6347240ac5ae84d had a typo which turned all signed integer divisions into unsigned ones. Oops. This gets us back the 51 little piglits (all from glsl built-in-functions, fs/vs/gs-op-div-int-ivec2 and similar). Cc: "10.2 10.3" <> Reviewed-by: Jose Fonseca <> (cherry picked from commit 5e1fcc625824ae962d5f658e151e6bc2665adce8)
2014-09-23gallivm,tgsi: fix idiv by zero crashrconde2-7/+25
While the result of signed integer division by zero is undefined by glsl (and doesn't exist with d3d10), we must not crash, so need to make sure we don't get sigfpe much like udiv already does. Unlike udiv where we return 0xffffffff (as required by d3d10) there is no requirement right now to return anything specific so we use zero. (cherry picked from commit ffeb77c7b0552a8624e46e65d6347240ac5ae84d) Nominated-by: Roland Scheidegger <> Bugzilla:
2014-09-19docs: Add sha256 sums for the 10.2.8 releaseEmil Velikov1-1/+3
Signed-off-by: Emil Velikov <>
2014-09-19Add release notes for the 10.2.8 releasemesa-10.2.8Emil Velikov1-0/+128
Signed-off-by: Emil Velikov <>
2014-09-19Update VERSION to 10.2.8Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <>
2014-09-17gallivm: set mcpu when initializing llvm execution engineRoland Scheidegger1-2/+24
Previously llvm detected cpu features automatically when the execution engine was created (based on host cpu). This is no longer the case, which meant llvm was then not able to emit some of the intrinsics we used as we didn't specify any sse attributes (only on avx supporting systems this was not a problem since despite at least some llvm versions enabling it anyway we always set this manually). So, instead of trying to figure out which MAttrs to set just set MCPU. This fixes Reviewed-by: Jose Fonseca <> Tested-by: Vinson Lee <> (cherry picked from commit cad60420d5ea36a4b6fa2e6c91317f71423aa63e) Conflicts: src/gallium/auxiliary/gallivm/lp_bld_misc.cpp Nominated-by: Laurent Carlier <> Bugzilla:
2014-09-17gallivm: Disable workaround for PR12833 on LLVM 3.2+.José Fonseca1-2/+2
Fixed upstream. (cherry picked from commit 172ef0c5a5a97c211702eb4033eeaac20993350e) Nominated-by: Evangelos Foutras <> Bugzilla:
2014-09-17gallivm: Fix uses of 2^24Richard Sandiford1-4/+4
Fallback cases in lp_bld_arit.c used 2^24 to mean "2 to the power 24", but in C it's "2 xor 24", i.e. 26. Fixed by using 1<< instead. Signed-off-by: Richard Sandiford <> Reviewed-by: Roland Scheidegger <> Cc: "10.2 10.3" <> Signed-off-by: Dave Airlie <> (cherry picked from commit 1a65629ccc590fe04a97b6df63d73e349b793619)
2014-09-17nouveau: change internal variables to avoid conflicts with macro argsIlia Mirkin1-10/+10
Reported by Coverity Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit b13a4ca3f7f622cbf688eec14d3f4156533af44e)
2014-09-17nouveau: only enable stencil func if the visual has stencil bitsIlia Mirkin2-2/+2
The _Enabled property already has the relevant information. Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 3c81de58512f0615df1d90aa79a22c9a44c7189e)
2014-09-17nouveau: only enable the depth test if there actually is a depth bufferIlia Mirkin5-4/+9
Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 79959e5de518c59b327a9df4a6fa80a68213b873)
2014-09-17nouveau: remove unneeded assertMaarten Lankhorst1-1/+0
No idea why it was added, but the code runs fine even on videos where it triggers. Signed-off-by: Maarten Lankhorst <> Cc: "10.2 10.3" <> (cherry picked from commit 8ab85bfcd5ddd44c50e5b384222731cb2a1a1496)
2014-09-17nouveau: rework reference frame handlingMaarten Lankhorst3-4/+37
Fixes a regression from "nouveau/vdec: small fixes to h264 handling" New picking order for frames: 1. Vidbuf pointer matches. 2. Take the first kicked ref. 3. If that fails, take a ref that has a different last_used. Signed-off-by: Maarten Lankhorst <> Cc: "10.2 10.3" <> (cherry picked from commit a41aad843108cec1901c88a76d5ceb4ede2e062b)
2014-09-17nouveau: fix MPEG4 hw decodingMaarten Lankhorst1-3/+3
Reorder some fields to make I-frame decoding work correctly. Signed-off-by: Maarten Lankhorst <> Cc: "10.2 10.3" <> (cherry picked from commit 121ceb38f45daacc938349d9d5aa82776b78dbab)
2014-09-17nouveau: re-allocate bo's on overflowMaarten Lankhorst4-11/+87
The BSP bo might be too small to contain all of the bsp data, bump its size on overflow. Also bump inter_bo when this happens, it might be too small otherwise. Signed-off-by: Maarten Lankhorst <> Cc: "10.2 10.3" <> (cherry picked from commit f6afed7076a6ef446dbec7cb10c8f8c60efafccd) strip _GNU_SOURCE from llvm-config outputJonathan Gray1-0/+1
Mesa already defines _GNU_SOURCE for glibc based systems and defining _GNU_SOURCE will break the Mesa build on other systems such as OpenBSD. _GNU_SOURCE only seems to be included in llvm-config output when LLVM is built via autoconf and not when it is built by cmake. Cc: "10.2 10.3" <> Signed-off-by: Jonathan Gray <> (cherry picked from commit c68073e65f15b0df43bec2df1d7470ed4cddd761)
2014-09-09configure: bail out if building svga without libdrmEmil Velikov1-0/+3
With recent commit we removed the NEED_NONNULL_WINSYS checks when selecting the hardware (inc svga) winsys. svga has only one winsys that explicitly requires libdrm (via it's bundled version of vmwgfx_drm.h) but never really checks for it. Add the check early to prevent people from shooting themselves when they select the driver but lack libdrm. $ ./ --disable-dri --disable-egl --disable-gallium-llvm --with-dri-drivers=swrast --with-gallium-drivers=svga,swrast Bugzilla: Cc: "10.2 10.3" <> Signed-off-by: Emil Velikov <> (cherry picked from commit 40bb6f93139971a459dadf88d6dfc05791071e37)
2014-09-09nv50/ir: avoid array overrun when checking for supported modsIlia Mirkin2-2/+2
Reported by Coverity Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 874a9396c5adfdcff63139bf6ababb55c1253402)
2014-09-09gallivm: Fix build after LLVM commit 211259Aaron Watry1-1/+3
Signed-off-by: Aaron Watry <> Reviewed-by: Tom Stellard <> (cherry picked from commit 564821c917f4a9d5a0de2ee77b90b0cd85e3d3a6) Nominated-by: Emil Velikov <> Bugzilla:
2014-09-09nvc0/ir: clarify recursion fix to finding first tex usesChristoph Bumiller1-9/+7
This is a simple shader for reproducing the case mentioned: FRAG DCL IN[0], GENERIC[0], PERSPECTIVE DCL OUT[0], COLOR DCL SAMP[0] DCL CONST[0] DCL TEMP[0..1], LOCAL IMM[0] FLT32 { 0.0000, -1.0000, 1.0000, 0.0000} 0: MOV TEMP[0].x, CONST[0].wwww 1: MOV TEMP[1].x, CONST[0].wwww 2: BGNLOOP 3: IF TEMP[0].xxxx 4: BRK 5: ENDIF 6: ADD TEMP[0].x, TEMP[0], IMM[0].zzzz 7: IF CONST[0].xxxx 8: TEX TEMP[1].x, CONST[0], SAMP[0], 2D 9: ENDIF 10: IF CONST[0].zzzz 11: MOV TEMP[1].x, CONST[0].zzzz 12: ENDIF 13: ENDLOOP 14: MOV OUT[0], TEMP[1].xxxx 15: END Cc: "10.2 10.3" <> Reviewed-by: Ilia Mirkin <> (cherry picked from commit ca9ab05d45ebf407485af2daa3742b897ff99162)
2014-09-09nv50/ir/util: fix BitSet issuesChristoph Bumiller3-3/+10
BitSet::allocate() is being used with the expectation that it would leave the bitfield untouched if its size hasn't changed, however, the function always zeroed the last word, which led to obscure bugs with live set computation. This also fixes BitSet::resize(), which was broken, but luckily not being used. Cc: "10.2 10.3" <> Reviewed-by: Ilia Mirkin <> (cherry picked from commit b9f9e3ce03dbd8d044a72a00e1e8856a500b5f72)
2014-09-09st/mesa: use 1.0f as boolean true on drivers without integer supportMarek Olšák1-2/+3
Bugzilla: Cc: 10.2 10.3 Reviewed-by: Brian Paul <> Reviewed-by: Matt Turner <> (cherry picked from commit 1a00f247512f22e58548053a99a706615a178672) [emil velikov: s|consts->|ctx->Const.|] Signed-off-by: Emil Velikov <>
2014-09-09mesa: set UniformBooleanTrue = 1.0f by defaultMarek Olšák2-0/+10
because NativeIntegers is 0 by default. Bugzilla: Cc: 10.2 10.3 Reviewed-by: Brian Paul <> Reviewed-by: Matt Turner <> (cherry picked from commit d67db73458c8d66861b97675660289a9555695ce) [emil velikov: s|consts->|ctx->Const.|] Signed-off-by: Emil Velikov <>
2014-09-08r600g,radeonsi: make sure there's enough CS space before resuming queriesMarek Olšák1-0/+28
Bugzilla: Cc: "10.2 10.3" <> Reviewed-by: Michel Dänzer <> (cherry picked from commit 3dbf55c1be5a8867616e475d943c776d8245d0cc)
2014-09-08winsys/svga: Fix incorrect type usage in IOCTL v2Thomas Hellstrom1-4/+9
While similar in layout, the size of the SVGA3dSize type may be smaller than the struct drm_vmw_size type that is part of the ioctl interface. The kernel driver could accordingly overwrite a memory area following the size variable on the stack. Typically that would be another local variable, causing breakage in, for example, ubuntu 12.04.5 where the handle local variable becomes overwritten. v2: Fix whitespace errors Signed-off-by: Thomas Hellstrom <> Reviewed-by: Jakob Bornecrantz <> Cc: "10.1 10.2 10.3" <> (cherry picked from commit 2d6206140afe9ecb551822ea00c36eeeef7edfbf)
2014-09-06docs: Add sha256 sums for the 10.2.7 releaseEmil Velikov1-0/+3
Signed-off-by: Emil Velikov <>
2014-09-06Add release notes for the 10.2.7 releasemesa-10.2.7Emil Velikov1-0/+208
Listing bugs fixed and changes made. Signed-off-by: Emil Velikov <>
2014-09-06Update VERSION to 10.2.7Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <>
2014-09-03mesa: Move declaration to top of block.José Fonseca1-1/+3
To fix MSVC build. Trivial. (cherry picked from commit c98b704128ed450b46c61e139d9f17c652a74c09)
2014-09-02i965/clip: Fix brw_clip_unfilled.c/compute_offset's assembly.Kenneth Graunke1-3/+3
Due to the destination register width of 1 or 2, these instructions get ExecSize 1 or 2. But dir and offset (used as src0) are both registers of width 4, violating the execsize >= width assertion. I honestly don't think this could have ever worked. Fixes Piglit's polygon-offset and polygon-mode-offset tests on Gen4-5. Bugzilla: Signed-off-by: Kenneth Graunke <> Reviewed-by: Chris Forbes <> (cherry picked from commit b7679639bcc8ac72cb08c48f9cda8eecd6a9c1e5) Bugzilla:
2014-09-02radeonsi: Don't use anonymous struct trick in atom trackingAdam Jackson6-10/+10
I'm somewhat impressed that current gccs will let you do this, but sufficiently old ones (including 4.4.7 in RHEL6) won't. Reviewed-by: Marek Olšák <> Signed-off-by: Adam Jackson <> (cherry picked from commit 74388dd24bc7fdb9e62ec18096163f5426e03fbf) Nominated-by: Jonathan Gray <> Bugzilla:
2014-09-02egl_dri2: fix EXT_image_dma_buf_import fdsPekka Paalanen1-31/+6
The EGL_EXT_image_dma_buf_import specification was revised (according to its revision history) on Dec 5th, 2013, for EGL to not take ownership of the file descriptors. Do not close the file descriptors passed in to eglCreateImageKHR with EGL_LINUX_DMA_BUF_EXT target. It is assumed, that the drivers, which ultimately process the file descriptors, do not close or modify them in any way either. This avoids the need to dup(), as it seems we would only need to just close the dup'd file descriptors right after. Bugzilla: Signed-off-by: Pekka Paalanen <> Reviewed-by: Topi Pohjolainen <> (cherry picked from commit 08264e5dad4df448e7718e782ad9077902089a07)
2014-09-02mesa: fix make tarballsEmil Velikov1-1/+0
Current method of generating distribution tar-balls involves manually invoking make + target name in the appropriate places. This temporary solution is used until we get 'make dist' working. Currently it does not work, as in order to have the target (which is also a filename) available in the final Makefile we need to add a PHONY target + use the correct target name. Cc: "10.2 10.3" <> Signed-off-by: Emil Velikov <> (cherry picked from commit 88cbe3908f0ea08228a5ffb1808f98b6906c4416) Also squashed together with: Revert "mesa: fix make tarballs" This reverts commit 0fbb9a599df898d4e1166d6d6f00cb34a0524bea. Rather than adding hacks around the issue drop the sources from the final tarball, and re-add them back with 'make dist'. This fixes a problem when running parallel 'make install' fails as it recreates sources and triggers partial recompilation. Cc: "10.2 10.3" <> Bugzilla: Reported-by: Maarten Lankhorst <> Signed-off-by: Emil Velikov <> Tested-by: Maarten Lankhorst <> Tested-by: Kai Wasserbäch <> (cherry picked from commit 5a4e0f3873657d874eb5ff52819f42ea38d54b91)
2014-09-02i965: add missing parens in vec4 visitorDave Airlie1-1/+2
coverity reported this, Matt said it look like missing parens, not bad identing, so lets try that. Cc: "10.2 10.3" <> Reviewed-by: Chris Forbes <> Signed-off-by: Dave Airlie <> (cherry picked from commit 94a909ec2df779bfdac6f42a25077b427b3873ea)
2014-09-02nv50: attach the buffer bo to the miptree structuresIlia Mirkin1-8/+5
The current code... makes no sense. Use nouveau_bo_ref to attach the bo to the exposed resource so as to have the proper lifetime guarantees. Tested-by: Emil Velikov <> Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 2c440433130d3c64635684355a3667d145a188e3)
2014-09-02nv50: mt address may not be the underlying bo's start addressIlia Mirkin3-12/+14
With VP2, nv50_miptree is faked because the underlying bo's have to be laid out in a certain way. This is done by adjusting the address. Make sure that blits (and everything else for consistency) use the mt address rather than the bo address as a base. This fixes retrieving chroma plane with VDPAU. Bugzilla: Tested-by: Emil Velikov <> Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 9d52e551a5874e54bc80f306bf3cacbad2441315)
2014-09-02nv50: set the miptree address when clearing bo's in vp2 initIlia Mirkin1-0/+2
The mt address is about to be used more, make sure it's set appropriately. Reported-by: Emil Velikov <> Tested-by: Emil Velikov <> Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 2528d402b9e35601d4631cd80a301bacd87dfc95)
2014-09-02nv50/ir: avoid creating instructions that can't be emittedIlia Mirkin1-0/+4
When constant folding a MAD operation, we first fold the multiply and generate an ADD. However we do so without making sure that the immediate can be handled in the saturate case. If it can't, load the immediate in a separate instruction. Reported-by: Tiziano Bacocco <> Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 6c2b079231f84b09b3f35183930afe522baee168)
2014-09-02nvc0: don't make 1d staging textures linearIlia Mirkin1-1/+0
Experimentally, the sampler doesn't appear to like these, neither as buffer nor as rect textures. So remove 1D from the list of texture types to make linear when used for staging. This fixes the OSD in mplayer for VDPAU. Signed-off-by: Ilia Mirkin <> Cc: "10.2 10.3" <> (cherry picked from commit 115d9a5525e74573ced9209063a1d4a551e6eaa4)