summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-11Add release notes for the 10.6.2 releasemesa-10.6.2Emil Velikov1-0/+164
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-07-11Update version to 10.6.2Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-07-08i965: Don't try to print the GLSL IR if it has been freedNeil Roberts1-4/+7
Since commit 104c8fc2c2aa5621261f8 the GLSL IR will be freed if NIR is being used. This was causing it to segfault if INTEL_DEBUG=wm is set. This patch just makes it avoid dumping the GLSL IR in that case. Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (cherry picked from commit c0ca6c30eaf7f488f154c462a01a8945cb4a3103)
2015-07-08Revert "i965: Delete linked GLSL IR when using NIR."Kenneth Graunke1-4/+1
This reverts commit 104c8fc2c2aa5621261f80aa6b4f76c3163078f1. (cherry picked from commit cae701fc8ed0faeaaaafd1cf57f6143031edcab2)
2015-07-08Revert "glsl: clone inputs and outputs during linking"Kenneth Graunke1-3/+1
This reverts commit c2ff3485b3d48749ea9dcad07bc1a691627dc3e5. Ilia and I noticed a memory leak caused by this patch: at least with fixed-function programs, we clone things using ProgramResourceList as the context before reralloc makes it non-NULL. I believe Tapani found other bugs with these patches, so I'm just going to revert them for now and let him pursue them further. (cherry picked from commit 6218c68bece0cea671f2940a651119a87ab8b24e)
2015-07-08i965: allocate at least 1 BLEND_STATE elementMike Stroyan1-1/+1
When there are no color buffer render targets, gen6 and gen7 still use the first BLEND_STATE element to determine alpha test. gen6_upload_blend_state was allocating zero elements when ctx->Color.AlphaEnabled was false. That left _3DSTATE_CC_STATE_POINTERS or _3DSTATE_BLEND_STATE_POINTERS pointing to random data from some previous brw_state_batch(). That sometimes suppressed depth rendering when those bits happened to mean COMPAREFUNC_NEVER. This produced flickering shadows for dota2 reborn. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80500 Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit fe2b748a39ff676949fcefccf739aff967fc38c5) Nominated-by: Kenneth Graunke <kenneth@whitecape.org>
2015-07-08st/dri: don't set PIPE_BIND_SCANOUT for MSAA surfacesMarek Olšák1-1/+1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91231 Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 6611f65047575054a38ce83ebfe0331e39e1774f) Nominated-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-07-08Revert SHA1 additions.Matt Turner6-530/+0
The shader-cache isn't finished, so the configure checks are a bit premature and will only stand to confuse users of Mesa 10.6. This is a squash of the follow four reverts: Revert "Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h" Revert "configure: Add machinery for --enable-shader-cache (and --disable-shader-cache)" Revert "sha1: Fix gcry_md_hd_t typo." Revert "mesa: Add mesa SHA-1 functions" Reviewed-by: Carl Worth <cworth@cworth.org>
2015-07-08loader: Look for any version of currently linked libudev.soChris Wilson1-18/+28
Since there was an ABI break and linking twice against libudev.so.0 and libudev.so.1 causes the application to quickly crash, we first check if the application is currently linked against libudev before dlopening a local handle. However for backwards/forwards compatability, we need to inspect the application for current linkage against all known versions first. Not doing so causes a crash when both libraries are present and so mesa chooses libudev.so.1 but the application was linked against libudev.so.0. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Emil Velikov: I'm ever so slightly conserned that RTLD_NOLOAD is not part of the POSIX standard, thus it's missing on some platforms (*BSD seems ok, while Solaris, MacOS are not). Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit f2413457937f8f4a92e11379569be69e508d7477)
2015-07-08nvc0: turn sample counts off during blitIlia Mirkin1-0/+7
Fixes the following piglits: occlusion_query_meta_fragments occlusion_query_meta_no_fragments Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 38c2ec5ff0bf626578db7b84387279342aa48844)
2015-07-08i965/vs: Fix matNxM vertex attributes where M != 4.Kenneth Graunke1-4/+11
Matrix vertex attributes have their columns padded out to vec4s, which I was failing to account for. Scalar NIR expects them to be packed, however. Fixes 1256 dEQP tests on Broadwell. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> (cherry picked from commit 73d0e7f3451eaeb62ac039d2dcee1e1c6787e3db) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/drivers/dri/i965/brw_fs_nir.cpp
2015-07-08glsl: Make sure not to dereference NULLNeil Roberts1-1/+1
In this bit of code point_five can be NULL if the expression is not a constant. This fixes it to match the pattern of the rest of the chunk of code so that it checks for NULLs. Cc: Matt Turner <mattst88@gmail.com> Cc: "10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Matt Turner <mattst88@gmail.com> (cherry picked from commit 86a3557d7c95ac945eedf42ab095639b255c1bed)
2015-07-08glsl: Add missing check for whether an expression is an add operationNeil Roberts1-1/+1
There is a piece of code that is trying to match expressions of the form (mul (floor (add (abs x) 0.5) (sign x))). However the check for the add expression wasn't checking whether it had the expected operation. It looks like this was just an oversight because it doesn't match the pattern for the rest of the code snippet. The existing line to check whether add_expr!=NULL was added as part of a coverity fix in 3384179f. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91226 Cc: Matt Turner <mattst88@gmail.com> Cc: "10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Matt Turner <mattst88@gmail.com> (cherry picked from commit 18039078e0254c7cb5e15b7186be05e2e4c10f38)
2015-07-08i965: Reserve more batch space to accomodate Gen6 perfmonitors.Kenneth Graunke1-2/+2
Ben noticed that I said each PIPE_CONTROL was 4 DWords, but it's actually 5 DWords on Gen6-7. We've been reserving insufficient space for performance monitoring on Sandybridge, which means it would likely break if you used that functionality. (Thankfully, no one does...) Also, the existing number of 146 was the result of me flubbing up the arithmetic: it should have actually been 140. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> (cherry picked from commit d9ab95b365f058a46bc43a8cb96b6fff10a13faf)
2015-07-08i965/skl: Set the pulls bary bit in 3DSTATE_PS_EXTRANeil Roberts4-0/+9
On Gen9+ there is a new bit in 3DSTATE_PS_EXTRA that must be set if the shader sends a message to the pixel interpolator. This fixes the interpolateAt* tests on SKL, apart from interpolateatsample-nonconst but that is not implemented anywhere so it's not a regression. Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "10.6 10.5" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 493af150fb3b1c007d791b24dcd5ea8a92ad763c) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/drivers/dri/i965/brw_fs_nir.cpp src/mesa/drivers/dri/i965/gen8_ps_state.c
2015-07-08radeonsi: fix a hang with DrawTransformFeedback on 4 SE chipsMarek Olšák1-0/+4
Cc: 10.6 10.5 <mesa-stable@lists.freedesktop.org> Acked-by: Christian König <christain.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit d3f4f6b2e9380a91ab61b93c55ab36106345e7b2)
2015-07-08nv50/ir: UCMP arguments are float, so make sure modifiers are appliedIlia Mirkin1-1/+2
The first argument to UCMP needs to be compared against 0, but the latter arguments are treated as float and need to be able to properly apply neg/abs arguments. Adjust the inferSrcType function accordingly. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit f70719cc4b64e12310dfe8825a8e2d4bce970673)
2015-07-08winsys/radeon: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads.Mario Kleiner1-3/+10
Same problem and fix as for nouveau's ZaphodHeads trouble. See patch ... "nouveau: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads." ... for reference. Cc: "10.3 10.4 10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit 28dda47ae4d974e3e032d60e8e0965c8c068c6d8)
2015-07-08r600g: disable single-sample fast color clear due to hangsMarek Olšák1-1/+6
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73528 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82186 Cc: 10.4 10.5 10.6 <mesa-stable@lists.freedesktop.org> (cherry picked from commit 97ec2c694fe568e375ec7a2b85c1acb1e4666b54)
2015-07-08mesa/prog: relative offsets into constbufs are not constantIlia Mirkin1-0/+2
The optimization logic relies on being able to read out constbuf values from program parameters. However that only works if there's no relative addressing involved. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> (cherry picked from commit 197a19f9ed0ba12cc431542ac09f2af0a8bd0bce)
2015-07-08nv50/ir: don't emit src2 in immediate formIlia Mirkin1-2/+2
In the immediate form, src2 == dst, so it does not need to be emitted. Otherwise it overlaps with the immediate value's low bits. Fixes: 09ee907266 (nv50/ir: Fold IMM into MAD) Cc: "10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> (cherry picked from commit c3215ef204c0fdfc44230adbd423720169d44dcb)
2015-07-08mesa: reset the source packing when creating temp transfer imageIlia Mirkin1-0/+1
Commit 4b249d2ee (mesa: Handle transferOps in texstore_rgba) introduced proper transferops handling, but in updating the source to the newly allocated temporary image neglected to reset the source packing. Set it to the default which should be appropriate for the floats used. Fixes: 4b249d2ee (mesa: Handle transferOps in texstore_rgba) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> (cherry picked from commit 4f57cdba2767b56eb4752f14ba9853ba6bc06d0e)
2015-07-08nv50/ir: copy joinAt when splitting both before and afterIlia Mirkin3-0/+5
The current implementation only moves the joinAt when splitting after the given instruction, not before it. So if you have a BB with foo instr bar joinat and thus with joinAt set, we end up first splitting before instr, at which point the instr's bb is updated to the new bb. Since that bb doesn't have a joinAt set (despite containing one), when splitting after the instr, there is nothing to copy over. Since the joinat will be in the "split" bb irrespective of whether we're splitting before or after the instruction, move it over in either case. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91124 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5dcb28c3d26828ed1b0e2bd5a0589c5baab04b85)
2015-07-08glsl: validate sampler array indexing for 'constant-index-expression'Tapani Pälli1-0/+77
Desktop GLSL < 130 and GLSL ES < 300 allow sampler array indexing where index can contain a loop induction variable. This extra check will warn during linking if some of the indexes could not be turned in to constant expressions. v2: warning instead of error for backends that did not enable EmitNoIndirectSampler option (have dynamic indexing) Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 9350ea6979c48772e1fb55d4f1c7c5a3cfa987b0)
2015-07-08mesa/st: use EmitNoIndirectSampler if !ARB_gpu_shader5Tapani Pälli1-0/+5
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit f17c8c287f3581fccb52714fbd4b2ea09a58e3d3)
2015-07-08i915: use EmitNoIndirectSamplerTapani Pälli1-0/+3
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 2dc2b12ed15abb84c7e2b3c2726dcc1b735abcda)
2015-07-08i965: use EmitNoIndirectSampler for gen < 7Tapani Pälli1-0/+4
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 8852e26e93af1fc4b72bf9d57e847f53e1a1371b) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/drivers/dri/i965/brw_shader.cpp
2015-07-08mesa/glsl: new compiler option EmitNoIndirectSamplerTapani Pälli2-0/+13
Patch provides new compiler option for backend to force unroll loops that have non-constant expression indexing on sampler arrays. This makes sure that we can never end up with a shader that uses loop induction variable as sampler array index but does not unroll because of having too much instructions. This would not work without dynamic indexing support. v2: change option name as EmitNoIndirectSampler Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit e4512e1581cf90f56d13cfa6a809832ef3517283)
2015-07-08glsl: Allow dynamic sampler array indexing with GLSL ES < 3.00Tapani Pälli1-19/+19
Dynamic indexing of sampler arrays is prohibited by GLSL ES 3.00. Earlier versions allow 'constant-index-expression' indexing, where index can contain a loop induction variable. Patch allows dynamic indexing for sampler arrays when GLSL ES < 3.00. This change makes 'sampler-array-index.frag' parser test in Piglit pass + fishgl.com works when running Chrome on OpenGL ES 2.0 backend v2: small change and some more commit message (Tapani) v3: refactor checks to make it more readable (Ian Romanick) v4: change warning comment in GLSL ES case (Curro) Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84225 (cherry picked from commit edb8383c98ee23385731d0fc23a6b6673528a8ec) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/glsl/ast_array_index.cpp
2015-07-08nv50/ir: fix emission of address reg in 3rd sourceIlia Mirkin1-2/+6
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91056 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit d5f1253b0c4637ad996fd0da45095165006d61d3)
2015-07-08nouveau: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads.Mario Kleiner1-1/+5
The dup'ed fd owned by the nouveau_screen for a device node must also be used as key for the winsys hash table, instead of using the original fd passed in for a screen, to make multi-x-screen ZaphodHeads configurations work on nouveau. The original fd's lifetime differs from that of the nouveau_screen stored in the hash. The hash key is the fd, and in order to compare hash entries we fstat them, so the fd must be around for as long as the screen is. This is an extension of the fix in commit a59f2bb1 (nouveau: dup fd before passing it to device). Cc: "10.3 10.4 10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (cherry picked from commit a98600b0ebdfc8481c168aae6c5670071e22fc29)
2015-07-08meta: Only change and restore viewport 0 in mesa meta modeMike Stroyan1-2/+2
The meta code was setting a default depth range for all viewports and 'restoring' all viewports to depth range values saved from viewport 0. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 2a210b797eacd27a556af9c5e0edca940f9486c5)
2015-07-08i965/fs: Fix ir_txs in emit_texture_gen4_simd16().Kenneth Graunke1-3/+4
We were not emitting the LOD, which led to message lengths of 1 instead of 3. Setting has_lod makes us emit the LOD, but I had to make changes to avoid emitting the non-existent coordinate as well. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91022 Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> (cherry picked from commit 35d83793047b3de31a706fa2a62a233090ea7cfc)
2015-07-08nv50/ir: propagate modifier to right arg when const-folding madIlia Mirkin1-1/+4
An immediate has to be the second arg of an ADD operation. However we were mistakenly propagating the modifier of the non-folded value to the folded immediate argument. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91117 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit ad62ec8316a926682958e7ab52639992867c3755)
2015-07-08i965: Delete linked GLSL IR when using NIR.Tapani Pälli1-1/+4
This is based on Kenneth's patch to delete 'most of the IR'. Due to linker changes to clone variables, we can now free all of IR. Saves 58MB of memory when replaying a Dota 2 trace on Broadwell. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 104c8fc2c2aa5621261f80aa6b4f76c3163078f1)
2015-07-08glsl: clone inputs and outputs during linkingTapani Pälli1-1/+3
This increases memory pressure during linking but makes it easier for backend to free IR after it is not needed anymore. v2: use resource list as ralloc context in case of relink (Kenneth) Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit c2ff3485b3d48749ea9dcad07bc1a691627dc3e5)
2015-07-08winsys/radeon: Unmap GPU VM address range when destroying BOMichel Dänzer3-4/+29
But only when doing so is safe according to the RADEON_INFO_VA_UNMAP_WORKING kernel query. This avoids kernel GPU VM address range conflicts when the BO has other references than the GEM handle being closed, e.g. when the BO is shared. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90537 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90873 Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Christian König <christian.koenig@amd.com> (cherry picked from commit 7796e8889a9a2cc1b454dc32d8da3d756404339a)
2015-07-08i965/fs: Don't mess up stride for uniform integer multiplication.Matt Turner1-4/+16
If the stride is 0, the source is a uniform and we should not modify the stride. Cc: "10.6" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91047 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit a49328d58d1e3e143f9434976d9f3574acefc4ea)
2015-06-29docs: Add sha256 checksums for the 10.6.1 releaseEmil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-29Add release notes for the 10.6.1 releasemesa-10.6.1Emil Velikov1-0/+103
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-29Update version to 10.6.1Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-25egl/x11: Remove duplicate call to dri2_x11_add_configs_for_visualsBoyan Ding1-5/+0
The call to dri2_x11_add_configs_for_visuals (previously dri2_add_configs_for_visuals) was moved downwards in commit f8c5b8a1, but appeared again in its original position after its rename in d019cd81. Remove it. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Chad Versace <chad.versace@intel.com> (cherry picked from commit 3fa9bb81ec8b21f472de32e08d0caf917239da08)
2015-06-25nv50,nvc0: make sure to pushbuf_refn before putting bo into pushbuf_dataIlia Mirkin4-0/+4
Without first running the bo through pushbuf_refn, the nouveau drm library will have uninitialized structures regarding this bo, and will insert incorrect data. This fixes supertuxkart 0.9 crash on start (where it ends up doing a lot of indirect draws). Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 78d58e642549fbf340fdb4fca06720d2891216a8)
2015-06-25nvc0: always put all tfb bufs into bufctxIlia Mirkin1-3/+4
Since we clear the TFB bufctx binding point above, we need to put all of the active tfb's back in, even if they haven't changed since last time. Otherwise the tfb may get moved into sysmem and the underlying mapping will generate write errors. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 9fcbf515b431a92e0289f234ab77a796cf2a5612)
2015-06-25glsl: binding point is a texture unit, which is a combined spaceIlia Mirkin1-1/+1
This fixes compilation failures in Dota 2 Reborn where a texture unit binding point was used that was numerically higher than the max per stage. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au> Tested-by: Nick Sarnie <commendsarnex@gmail.com> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit fccf012adc0d3aad877de095244324aa1d2d046a)
2015-06-25gbm: do not (over)link against libglapi.soEmil Velikov1-1/+2
The whole of GBM does not rely on even a single symbol from the GL dispatch library, unsuprisingly. The only need for it comes from the unresolved symbols in the DRI modules, which are now correctly handled with Frank's commit. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit a0dc6b7824d3b9095919e29393a379ea7f9c1318)
2015-06-25gbm: dlopen libglapi so gbm_create_device worksFrank Henigman1-0/+8
Dri driver libs are not linked to pull in libglapi so gbm_create_device() fails when it tries to dlopen them (unless the application is linked with something that does pull in libglapi, like libGL). Until dri drivers can be fixed properly, dlopen libglapi before trying to dlopen them. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Frank Henigman <fjhenigman@google.com> [Emil Velikov: Drop misleading bugzilla link, mention that libname differs] Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 828f13330c9384f2b55c8b0f962d93a74ecd0601)
2015-06-25configure: error out when building libEGL without shared-glapiEmil Velikov1-0/+3
The latter is a hard requirement and without it we'll error out later on in the build. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 994be5143a097ae2cf504ba344362edfee388ac3)
2015-06-25configure: error out when building backend-less libEGLEmil Velikov1-2/+6
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit ddc886b5bfe5976fa2e5f49eeefa918736f1aa97)
2015-06-25configure: warn about shared_glapi & xlib-glx only when both are setEmil Velikov1-1/+1
Printing out the message when shared_glapi is disabled only leads to confusion. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 6d744aaf4e427b6b0b3d8d35d756592a50abbb97)