summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-01-24docs: use correct year for the 12.0.6 release notes12.0Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-24docs: add sha256 checksums for 12.0.6Emil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-24docs: add release notes for 12.0.6mesa-12.0.6Emil Velikov1-0/+147
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-24Update version to 12.0.6Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-20i965: Properly flush in hsw_pause_transform_feedback().Kenneth Graunke1-0/+3
Fixes a number of transform feedback tests when run with Linux 4.8, which allows us to use the MI_LOAD_REGISTER_REG command, at which point we started using this new broken path. ES3-CTS.functional.transform_feedback.array_element.interleaved.lines.* and Piglit's arb_transform_feedback2/draw-auto are both fixed by this patch, for example. Thanks to Chris Wilson for catching this mistake! Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99030 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> (cherry picked from commit 2138347a45fa6dad1934b1c58a9e7d7f53194828)
2017-01-20anv: Handle vkGetPhysicalDeviceQueueFamilyProperties with count == 0Chad Versace1-1/+8
The spec implicitly allows the incoming count to be 0. From the Vulkan 1.0.38 spec, Section 4.1 Physical Devices: If the value referenced by pQueueFamilyPropertyCount is not 0 [then do stuff]. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit d6545f234593fb00d02fdc07f9b2a803d2b569f6)
2017-01-20egl/wayland: use the destroy_window_callback for swrastEmil Velikov1-0/+2
As described in commit 690ead4a135 ("egl/wayland-egl: Fix for segfault in dri2_wl_destroy_surface.") if we attempt to destroy a EGL surface attached to already destroyed Wayland window we'll get a segfault. v2: set the correct callback alongside the window->private. (Dan) Cc: Daniel Stone <daniels@collabora.com> Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> (cherry picked from commit bfd63143502ff03ceae903f959a6f41666b849bc)
2017-01-13automake: use shared llvm libs for make distcheckEmil Velikov1-1/+1
Cc: "12.0 13.0" <mesa-dev@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 23dcce0c03db055c168696c9120637506b68b13d)
2017-01-13i965/mt: Disable HiZ when sharing depth buffer externally (v2)Chad Versace1-7/+22
intel_miptree_make_shareable() discarded and disabled CCS. Fix it so that it discards and disables HiZ too. Fixes dEQP-EGL.functional.image.render_multiple_contexts.gles2_renderbuffer_depth16_depth_buffer on Skylake. v2: Actually do what the commit message says. Discard the HiZ buffer. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=98329 Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: Nanley Chery <nanley.g.chery@intel.com Cc: Haixia Shi <hshi@chromium.org> (cherry picked from commit 42011be1e27f59d750b781c10766e19ec0ee6ff5) [Emil Velikov: patch is a backport by Chad of above commit]
2017-01-13i965/mt: Disable aux surfaces after making miptree shareableChad Versace1-0/+2
The entire goal of intel_miptree_make_shareable() is to permanently disable the miptree's aux surfaces. So set intel_mipmap_tree:disable_aux_buffers after the function's done with discarding down the aux surfaces. References: https://bugs.freedesktop.org/show_bug.cgi?id=98329 Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: Nanley Chery <nanley.g.chery@intel.com Cc: Haixia Shi <hshi@chromium.org> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 1c8be049bea786c2c054a770025976beba5b8636)
2017-01-13get-typod-pick-list.sh: add new scriptEmil Velikov1-0/+39
Typos do happen as people nominate patches for stable. This script aims to catch most of those. Due to the subtle nature of things, one has to pay special attention to the output, similar to get-extra-pick-list.sh. At the moment only the following is handled: grep -i "CC:.*mesa-dev" Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit f0bdd13fdbc0bec1119b296d99820899183e26ab)
2017-01-13nouveau: take extra push space into account for pushbuf_space callsIlia Mirkin15-56/+26
Ever since a long time ago when I messed around with fences, I ensure that after a PUSH_SPACE call there is enough space to write a fence out into the pushbuf. However the PUSH_SPACE macro is not all-knowing, and so sometimes we have to invoke nouveau_pushbuf_space manually with the relocs/pushes args set. If we don't take the extra allocation from PUSH_SPACE into account, then we will end up accidentally flushing when the code was not expecting a flush. This can lead to various runtime and rendering failures. The amount of extra allocation isn't that important - it has to be at least 8 based on the current nouveau_winsys.h setting, but even more won't hurt. I just rounded up to powers of 2. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99354 Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Acked-by: Ben Skeggs <bskeggs@redhat.com> (cherry picked from commit eb60a89bc3ac2b43faf52d06e05670bbbca7292d)
2017-01-13spirv: Move cursor before calling vtn_ssa_value() in phi 2nd pass.Kenneth Graunke1-1/+2
vtn_ssa_value() can produce variable loads, and the cursor might be after a return statement, causing nir_builder assert failures about not inserting instructions after a jump. This fixes: dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_if dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_switch Cc: "13.0 12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 203c1287816f2a73475a48dd72a9a2ed03a42ac1)
2017-01-13dri3: Fix MakeCurrent without a default framebufferFredrik Höglund1-4/+10
In OpenGL 3.0 and later it is legal to make a context current without a default framebuffer. This has been broken since DRI3 support was introduced. Cc: "13.0 12.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit b6670157d742548e7f2430614786c733eb4c20e9)
2017-01-13cso: Don't restore nr_samplers in cso_restore_fragment_samplersMichel Dänzer1-1/+0
If info->nr_samplers > ctx->nr_fragment_samplers_saved, the assignment would prevent cso_single_sampler_done from unbinding the no longer used samplers from the driver, which could result in use-after-free. This is probably unlikely to happen in practice though. Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (cherry picked from commit 3d661a12be5be95da929b19cf4b5976b3c3fb8e9)
2017-01-13anv/descriptor_set: Write the state offset in the surface state free list.Jason Ekstrand1-0/+1
When Kristian reworked descriptor set allocation, somehow he forgot to actually store the offset in the free list. Somehow, this completely missed CTS testing until now... This fixes all 2744 of the new 'dEQP-VK.texture.filtering.* tests in the latest CTS. Cc: "12.0 13.0" <mesa-dev@lists.freedesktop.org> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit 37537b7d868ddca376e2553a4ea9e5e0033a961c)
2017-01-13anv/device: Implicitly unmap memory objects in FreeMemoryJason Ekstrand1-0/+9
From the Vulkan spec version 1.0.32 docs for vkFreeMemory: "If a memory object is mapped at the time it is freed, it is implicitly unmapped." Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Cc: "12.0 13.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit b1217eada9e32bf387d4d14615340aa5b5fd1f5c)
2017-01-13anv/device: Return the right error for failed mapsJason Ekstrand2-6/+9
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Cc: "12.0 13.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 920f34a2d9f14f023aee5203baa110c971519ee8)
2017-01-13spirv/nir: Add support for ImageQuerySamplesJason Ekstrand1-0/+3
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 9e05e51cff69dbb5da8588184c3b934e59c9a5ac)
2017-01-13spirv/nir: Handle texture projectorsJason Ekstrand1-0/+15
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 71202352c8d9f87d7b6f06bece67771d7cf641a4)
2017-01-13nir/spirv: Refactor coordinate handling in handle_textureJason Ekstrand1-29/+28
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 36c31b8fa22acee78c26ec9a82fbc13d992d022f)
2017-01-13spirv/nir: Refactor type handling in handle_textureJason Ekstrand1-5/+8
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit b820c8b78c8e72426dbf6188e21c34fb956ddbcf)
2017-01-13spirv/nir: Move opcode selection higher up in handle_textureJason Ekstrand1-48/+48
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 561be50a1ac63cd2f157cf6d305569e5a33f12da)
2017-01-13anv/image: Assert that the image format is actually supportedJason Ekstrand1-2/+5
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit c8da91aa243dd5dcb4b529ce5be15b45384a50d2)
2017-01-13spirv/nir: Don't increment coord_components for array lod queriesJason Ekstrand1-1/+1
For lod query instructions, we really don't care whether or not the sampler is an array type because that doesn't factor into the LOD. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 34a39e91bac2c2f12389cded943019b79c7a9a06)
2017-01-13i965: Get rid of the do_lower_unnormalized_offsets passJason Ekstrand4-109/+0
We can do this in NIR now. No need to keep a GLSL pass lying around for it. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 67b7d876e429f13de874df447c67f47d2890f71a)
2017-01-13i965/nir: Enable NIR lowering of txf and rect offsetsJason Ekstrand1-0/+2
This fixes the following piglit tests on gen6+: tex-miplevel-selection textureProjGradOffset 2DRect tex-miplevel-selection textureGradOffset 2DRect tex-miplevel-selection textureGradOffset 2DRectShadow tex-miplevel-selection textureProjGradOffset 2DRect_ProjVec4 tex-miplevel-selection textureProjGradOffset 2DRectShadow Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 9f32721f8695f3e55849dce015da3b53d1af5d57)
2017-01-13nir/lower_tex: Add support for lowering coordinate offsetsJason Ekstrand2-0/+64
On i965, we can't support coordinate offsets for texelFetch or rectangle textures. Previously, we were doing this with a GLSL pass but we need to do it in NIR if we want those workarounds for SPIR-V. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit d9156efc5292b4ac7cea9d12e68882fc7b5da5fd)
2017-01-13nir/lower_tex: Add some helpers for working with tex sourcesJason Ekstrand1-16/+30
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 843fc8f3e782379899976f6f6f6dcdeb58153fa1)
2017-01-13nir: Add a helper for determining the type of a texture sourceJason Ekstrand1-0/+44
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 09135cd55a05908a68e173e37e0f5c375f341776)
2017-01-13anv/pipeline: Set binding_table.gather_texture_startJason Ekstrand1-0/+1
This should get texture gather working on gen8+ and mostly working on gen7. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 3c0077a6ec4c0ffd6e74e219c786d5d7f9217ce9)
2017-01-13spirv/nir: Properly handle gather componentsJason Ekstrand1-1/+11
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 95e9d58bdb7df402d9035842c3fe76234a14c2da)
2017-01-13spirv/nir: Add support for shadow samplers that return vec4Jason Ekstrand1-1/+2
While SPIR-V technically doesn't support "old style" shadow, the shadow-compare gather instruction does return a vec4 so we need to be able to set the old_style_shadow bit in NIR. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 7c7acf53b2ddd41d307699ebd8bf108c4478ce07)
2017-01-13spirv/nir: Fix some texture opcode assertsJason Ekstrand1-2/+2
We can't get an lod with txf_ms and SPIR-V considers textureGrad to be an explicit-LOD texturing instruction. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit 2ddefd03b748024735c106b97b9acbdab6c93766)
2017-01-13radeonsi: enable WQM in PS prolog when neededNicolai Hähnle2-0/+10
WQM is needed when the PS prolog computes a VGPR that is consumed by a shader with (implicit or explicit) derivatives. Depends on http://reviews.llvm.org/D20839 / LLVM r272063 for this to be effective (otherwise it's just a no-op). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95130 Cc: 12.0 <mesa-dev@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit b42bc90b6add0d0f81d915d49712761d32329afa)
2017-01-13i965/fs: Reject copy propagation into SEL if not min/max.Matt Turner2-1/+12
We shouldn't ever see a SEL with conditional mod other than GE (for max) or L (for min), but we might see one with predication and no conditional mod. total instructions in shared programs: 8241806 -> 8241902 (0.00%) instructions in affected programs: 13284 -> 13380 (0.72%) HURT: 62 total cycles in shared programs: 84165104 -> 84166244 (0.00%) cycles in affected programs: 75364 -> 76504 (1.51%) helped: 10 HURT: 34 Fixes generated code in at least Sanctum 2, Borderlands 2, Goat Simulator, XCOM: Enemy Unknown, and Shogun 2. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92234 Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 7bed52bb5fb4cfd5f91c902a654b3452f921da17)
2017-01-13i965/fs: Add unit tests for copy propagation pass.Matt Turner2-0/+211
Pretty basic, but it's a start. Acked-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 091a8a04adb28a2044e3baadba0af52a185b3bd0) [Emil Velikov: s/gen_device_info/brw_device_info/, nir_shader_create() has only three arguments] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-12-16i965/fs: Rename opt_copy_propagate -> opt_copy_propagation.Matt Turner3-15/+16
Matches the vec4 backend, cmod propagation, and saturate propagation. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 6014da50ec41d1ad43fec94a625962ac3f2f10cb) [Emil Velikov: resolve trivial conflicts - don't rename instances which do not exist] Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Conflicts: src/mesa/drivers/dri/i965/brw_fs.cpp
2016-12-16gallium/radeon: fix the draw-calls HUD queryMarek Olšák1-1/+1
reported by kisak on irc, it only applies to stable, not master Fix separated/backported from commit 4140afd04bc ("gallium/radeon: add driver queries for compute/dma call stats and spills") Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org>
2016-12-16radeonsi: disable the constant engine (CE) on Carrizo and StoneyMarek Olšák1-1/+4
It must be disabled until the kernel bug is fixed, and then we'll enable CE based on the DRM version. Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (cherry picked from commit 31f988a9d6d05f4aaea4d0455e509a5f6b667d9c)
2016-12-16radeonsi: disable CE on SI + AMDGPUMarek Olšák1-1/+3
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit 49c798e902be6c95ae44422cb05c98e1e8f6f1ca) Nominated-by: Emil Velikov <emil.velikov@collabora.com>
2016-12-16radeonsi: fix incorrect FMASK checking in bind_sampler_statesMarek Olšák1-4/+4
Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (cherry picked from commit 38d4859b9465146189c234cd372de9d3eee86a92)
2016-12-16radeonsi: always restore sampler states when unbinding sampler viewsMarek Olšák1-2/+8
Cc: 13.0 12.0 <mesa-stable@lists.freedesktop.org> (cherry picked from commit b3a2aa9cba46bd6c8de22390b3b1ce9ac6c27988)
2016-12-16cso: don't release sampler states that are boundMarek Olšák1-1/+3
This fixes random radeonsi GPU hangs in Batman Arkham: Origins (Wine) and probably many other games too. cso_cache deletes sampler states when the cache size is too big and doesn't check which sampler states are bound, causing use-after-free in drivers. Because of that, radeonsi uploaded garbage sampler states and the hardware went bananas. Other drivers may have experienced similar issues. Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> (cherry picked from commit 6dc96de303290e8d1fc294da478c4f370be98dea)
2016-12-05docs: add sha256 checksums for 12.0.5Emil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-12-05docs: add release notes for 12.0.5mesa-12.0.5Emil Velikov1-0/+137
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-12-05Update version to 12.0.5Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-12-05radeonsi: silence runtime warnings with LLVM 3.9Marek Olšák1-0/+3
Such as: Warning: LLVM emitted unknown config register: 0x4 This is a non-intrusive back port of commit 0f7a6ea5e7b.
2016-12-05radeonsi: disable RB+ blend optimizations for dual source blendingMarek Olšák1-0/+11
This fixes dual source blending on Stoney. The fix was copied from Vulkan. The problem was discovered during internal testing. Cc: 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (cherry picked from commit 5e5573b1bf8565f38e9b770b5357d069e80ff00d)
2016-12-05radeonsi: set CB_BLEND1_CONTROL.ENABLE for dual source blendingMarek Olšák1-0/+4
copied from Vulkan Cc: 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (cherry picked from commit ff50c44a5fb4411715da828af5b8706c8a456d26)