Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / mesa
Commits: 624cd7f2 by Eric Engestrom at 2020-08-19T23:44:45+02:00 docs/relnotes: add sha256 sums to 20.1.6 - - - - - 02c52ed6 by Eric Engestrom at 2020-09-02T21:50:27+02:00 .pick_status.json: Update to e94c22429b64f419d9a66f04fa5ecdad33f7f5ef - - - - - fb1e47e7 by Eric Engestrom at 2020-09-02T21:50:39+02:00 .pick_status.json: Mark 9146f596ed1e8854a2a6c9137396a902bc92946c as denominated - - - - - 84fb2a9c by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark da6d0e3facfe0eb5c7db2d75d6992643d929caff as denominated - - - - - cbed17fd by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark b5558f2d2aa738d90b9e039144ae3ca69bdf92ca as denominated - - - - - 3c26a77c by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark c9858fb941ce7e903f608e537b3657c946f86980 as denominated - - - - - b51e73ee by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark ee77951714ff4373261befde6e84f592cc1c769c as denominated - - - - - 1e34fd46 by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark 7c226116c6c0793d6d9a7dec52ac7cf54b82b57f as denominated - - - - - 5fd8177b by Eric Engestrom at 2020-09-02T21:50:40+02:00 .pick_status.json: Mark d7d7687829875e401690219d4a72458fb2bbe4de as denominated - - - - - 1c48578b by Alyssa Rosenzweig at 2020-09-02T21:50:40+02:00 panfrost: Fix blend leak for render targets 5-8 Signed-off-by: Alyssa Rosenzweig <[email protected]> Fixes: 375d4c2c74d ("panfrost: Extend blending to MRT") Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373> (cherry picked from commit ba4fc67812cd052a4c89cac0f376326f52da1fda) - - - - - 873584e6 by Alyssa Rosenzweig at 2020-09-02T21:50:41+02:00 panfrost: Free hash_to_temp map No need to put it on the context, we can keep it local in mir_squeeze and drop when we're done. 15.77KB leaked over 85 calls from: 0xffffaed3bfc3 in ?? _mesa_hash_table_rehash at ../src/util/hash_table.c:368 in /home/alyssa/rockchip_dri.so hash_table_insert at ../src/util/hash_table.c:403 in /home/alyssa/rockchip_dri.so find_or_allocate_temp at ../src/panfrost/midgard/mir_squeeze.c:48 in /home/alyssa/rockchip_dri.so find_or_allocate_temp at ../src/panfrost/midgard/mir_squeeze.c:35 in /home/alyssa/rockchip_dri.so mir_squeeze_index at ../src/panfrost/midgard/mir_squeeze.c:76 Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373> (cherry picked from commit 62637a913ab67dc3ade1af3c2d4ae724ab677836) - - - - - 10cc0d9f by Alyssa Rosenzweig at 2020-09-02T21:50:41+02:00 pan/mdg: Free previous liveness Before we drop the reference. 160 calls with 0B peak consumption from: 0xffffbd9d2fc3 in ?? pan_compute_liveness at ../src/panfrost/util/pan_liveness.c:127 in /home/alyssa/rockchip_dri.so mir_compute_liveness at ../src/panfrost/midgard/midgard_liveness.c:55 in /home/alyssa/rockchip_dri.so midgard_opt_dead_code_eliminate at ../src/panfrost/midgard/midgard_opt_dce.c:118 in /home/alyssa/rockchip_dri.so Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373> (cherry picked from commit 8dd38e5a3e68d67d6050f8bcba28cf3514ef1eef) - - - - - 83ccf31f by Alyssa Rosenzweig at 2020-09-02T21:50:41+02:00 panfrost: Use memctx for sysvals 8.74KB leaked over 52 calls from: 0xffffbb5b9fc3 in ?? _mesa_hash_table_init at ../src/util/hash_table.c:163 in /home/alyssa/rockchip_dri.so _mesa_hash_table_create at ../src/util/hash_table.c:186 _mesa_hash_table_u64_create at ../src/util/hash_table.c:701 in /home/alyssa/rockchip_dri.so panfrost_nir_assign_sysvals at ../src/panfrost/util/pan_sysval.c:130 in /home/alyssa/rockchip_dri.so midgard_compile_shader_nir at ../src/panfrost/midgard/midgard_compile.c:2905 in /home/alyssa/rockchip_dri.so Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373> (cherry picked from commit 680fb05f99d701d2156d231f6b5ae614b146c7ce) - - - - - 64af2c31 by Alyssa Rosenzweig at 2020-09-02T21:50:42+02:00 panfrost: Free batch->dependencies On glmark2-es2 -bterrain: 594.05KB leaked over 9282 calls from: panfrost_batch_update_bo_access at ../src/gallium/drivers/panfrost/pan_job.c:462 in /home/alyssa/rockchip_dri.so panfrost_batch_add_bo at ../src/gallium/drivers/panfrost/pan_job.c:560 panfrost_batch_add_bo at ../src/gallium/drivers/panfrost/pan_job.c:519 in /home/alyssa/rockchip_dri.so panfrost_batch_add_resource_bos at ../src/gallium/drivers/panfrost/pan_job.c:569 panfrost_batch_add_fbo_bos at ../src/gallium/drivers/panfrost/pan_job.c:588 in /home/alyssa/rockchip_dri.so panfrost_create_batch at ../src/gallium/drivers/panfrost/pan_job.c:126 Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373> (cherry picked from commit 1cb47f8eea0af26b9573ac973ae3d9852cbabe6a) - - - - - b88f0c9d by Pierre Moreau at 2020-09-02T21:50:42+02:00 clover/spirv: Remove unused tuple header Fixes: 21473865050 ("clover/spirv: Add functions for parsing arguments, linking programs, etc.") Signed-off-by: Pierre Moreau <[email protected]> Reviewed-by: Serge Martin <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5038> (cherry picked from commit a9ca73730e4bba775463ca75949660abbf59b73f) - - - - - e8d44907 by Danylo Piliaiev at 2020-09-02T21:50:42+02:00 glsl: Eliminate out-of-bounds triop_vector_insert Section 5.11 (Out-of-Bounds Accesses) of the GLSL 4.60 spec says: "In the subsections described above for array, vector, matrix and structure accesses, any out-of-bounds access produced undefined behavior.... Out-of-bounds writes may be discarded or overwrite other variables of the active program." Fixes crashes when dereferencing gl_ClipDistance and gl_TessLevel*, e.g: int index = -1; gl_ClipDistance[index] = -1; When LowerCombinedClipCullDistance is true. CC: <[email protected]> Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marcin Ślusarz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6363> (cherry picked from commit e802bff69ee74983215d0c2b7e213fca6d68a97d) - - - - - dbed75ce by Rhys Perry at 2020-09-02T21:50:42+02:00 aco: fix non-rtz pack_half_2x16 We were using the wrong conversion opcode. The high bits are also not zero'd on GFX10, which can cause v_cvt_pk_u16_u32 to clamp. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Fixes: df645fa369d ('aco: implement VK_KHR_shader_float_controls') Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6346> (cherry picked from commit 9c1e0d86a813af7609acf42cfe6bec7401d6405f) - - - - - 2a765e2d by Jason Ekstrand at 2020-09-02T21:50:42+02:00 clover/spirv: Don't call llvm::regularizeLlvmForSpirv writeSpirv() already takes care of that, and calling it twice seems to duplicate functions and cause problems when processing execution modes. Fixes: 2043c5f37cf "clover/llvm: Add functions for compiling from..." Acked-by: Daniel Stone <[email protected]> Reviewed-by: Pierre Moreau <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6306> (cherry picked from commit e3e45e2456d2dc7eccf03d7c93bc9cee823a1eec) - - - - - dc6be986 by Marek Olšák at 2020-09-02T21:50:42+02:00 st/mesa: don't generate NIR for ARB_vp/fp if NIR is not preferred Fixes: 5d0630e5043fc2 "st/mesa: call prog_to_nir sooner for ARB_fp" Fixes: a3de63fbb3d63e "st/mesa: don't generate VS TGSI if NIR is enabled" Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6442> (cherry picked from commit 2424485fb436b2abeca2dc801ffda156e3d1fe78) - - - - - 4c05639a by Lionel Landwerlin at 2020-09-02T21:50:43+02:00 anv: fix transform feedback surface size Non multiple 4 sizes are causing issue in particular < 4. Signed-off-by: Lionel Landwerlin <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3450 Fixes: 36ee2fd61c8f ("anv: Implement the basic form of VK_EXT_transform_feedback") Reviewed-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6430> (cherry picked from commit fd10cb8cfccb8882e33a1ade047fc467b9716f54) - - - - - 6273688e by Emil Velikov at 2020-09-02T21:50:43+02:00 radv: restrict exported symbols with static llvm Like the gallium --version-script magic but for radv. The long term goal is to make LLVM support optional, remove it even, so let's keep the hunk in an if block. v2: fold if checks (Eric) v3 (Tomeu): Remove spaces within [] (Dylan) Signed-off-by: Emil Velikov <[email protected]> Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6203> (cherry picked from commit 41bb6459d3a7dba21ff811069dc4757d7789fd12) - - - - - 1d9aa0e9 by Danylo Piliaiev at 2020-09-02T21:50:43+02:00 ir_constant: Return zero on out-of-bounds vector accesses Several optimization paths, including constant folding, can lead to accessing an ir_constant vector with an out of bounds index. Return 0 since GL_ARB_robustness and GL_KHR_robustness encourage us to do so. Fixes piglit tests: [email protected]@execution@vector-out-of-bounds-access@fs-vec4-out-of-bounds-2 [email protected]@execution@vector-out-of-bounds-access@fs-vec4-out-of-bounds-4 [email protected]@execution@vector-out-of-bounds-access@fs-vec4-out-of-bounds-5 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2604 CC: <[email protected]> Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marcin Ślusarz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6363> (cherry picked from commit e93979ba599355c42df01a89073362b970489a3a) - - - - - 0ebb3263 by Danylo Piliaiev at 2020-09-02T21:50:43+02:00 glsl: Eliminate assigments to out-of-bounds elements of vector Several optimization paths, including constant folding, can lead to indexing vector with an out of bounds index. Out-of-bounds writes could be eliminated per spec: Section 5.11 (Out-of-Bounds Accesses) of the GLSL 4.60 spec says: "In the subsections described above for array, vector, matrix and structure accesses, any out-of-bounds access produced undefined behavior.... Out-of-bounds writes may be discarded or overwrite other variables of the active program." Fixes piglit tests: [email protected]@execution@vector-out-of-bounds-access@fs-vec4-out-of-bounds-1 [email protected]@execution@vector-out-of-bounds-access@fs-vec4-out-of-bounds-6 CC: <[email protected]> Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marcin Ślusarz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6363> (cherry picked from commit 5922d57a184fcb27955d959e949e1ef68873bd19) - - - - - 8f0fa5bf by Rob Clark at 2020-09-02T21:50:43+02:00 freedreno: handle case of shadowing current render target If you have a sequence where there is a single buffer associated with the current render target, and then you end up shadowing it on the 3d pipe (u_blitter), because of how we swap the new shadow and rsc before the back-blit, you could end up confusing things into thinking that the blitters framebuffer state is the same as the current framebuffer state. Re-organizing the sequence to swap after the blit is complicated when also having to deal with CPU memcpy blit path, and the batch/rsc accounting. So instead just detect this case and flush if we need to. Fixes: dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_clear dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_draw Cc: [email protected] Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6434> (cherry picked from commit 1fa43a4a8ec37aacac4d333a4c72987819188e69) - - - - - 2b58168d by Marek Olšák at 2020-09-02T21:50:44+02:00 radeonsi: fix tess levels coming as scalar arrays from SPIR-V This fixes: KHR-GL45.gl_spirv.spirv_modules_positive_test Fixes: 75ce078a0af "radeonsi: enable NIR by default and document GL 4.6 support" Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6460> (cherry picked from commit a61890883ddb993cce1b94ccff20b638acd0a4f7) - - - - - a8be2101 by Nanley Chery at 2020-09-02T21:50:44+02:00 gallium/dri2: Report correct YUYV and UYVY plane count Return the actual number of planes in these formats (one) instead of the number of planes used for lowering (two). Fixes: d5c857837aa ("gallium/dri2: Fix creation of multi-planar modifier images") Acked-by: Anuj Phogat <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6449> (cherry picked from commit 36bd3e986830bbf7435389cdd68e593b8b43f234) - - - - - 0936b0eb by Alejandro Piñeiro at 2020-09-02T21:50:44+02:00 v3d/packet: fix typo on Set InstanceID/PrimitiveID packet Fixes: 276d22c52 ("v3d: Add some more new packets for V3D 4.x.") CC: 20.2 20.1 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6447> (cherry picked from commit 2e8b6f64decc1bfdf53dc4846fc29070d0115844) - - - - - be47fe1c by Alejandro Piñeiro at 2020-09-02T21:50:44+02:00 v3d: set instance id to 0 at start of tile PTB assumes that base instance to be 0 at start of tile, but hw would not do that, we need to set it. It is worth to note that the opcode name is somewhat confusing as what it really sets is the base instance. We could rename the opcode, but then the name would be different to the original Broadcom name, so confusing in any case. This fixes several dEQP-GLES3 and dEQP-GLES31 tests that passes individually, but started to fail depending on other tests running before using base instance different to zero. This is the backport of a Vulkan patch that fixed some Vulkan CTS tests that start to fails after some other tests used an instance id. CC: 20.2 20.1 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6447> (cherry picked from commit 05a0349949921406aefe1d99e9d2af84629997e1) - - - - - 5328bf37 by Marek Vasut at 2020-09-02T21:50:44+02:00 etnaviv: Remove etna_resource_get_status() This function is not used, remove it. Signed-off-by: Marek Vasut <[email protected]> Cc: <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6454> (cherry picked from commit da660c90bf94527c3d54a9a59e7f7df935480479) - - - - - 63457223 by Marek Vasut at 2020-09-02T21:50:44+02:00 etnaviv: Add lock around pending_ctx The content of rsc->pending_ctx could be changed from multiple contexts and thus from multiple threads. The per-context lock is not sufficient to protect this list. Add per-resource lock to protect this list. Fixes: e5cc66dfad0 ("etnaviv: Rework locking") Signed-off-by: Marek Vasut <[email protected]> Cc: <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6454> (cherry picked from commit 60975ebe58ddb05beebbdd3850dc9d866aee5420) - - - - - b3332b8d by Bas Nieuwenhuizen at 2020-09-02T21:50:45+02:00 radv: Fix 3d blits. - the offsets are inclusive-exclusive so the +1 was wrong - Since the GPU doesn't do the interpolation on depth (as we render per layer), we have to add an offset for the pixel center. CC: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3073 Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6458> (cherry picked from commit 4d40a719b07670b64d6ed4313818ac8d309bb77f) - - - - - 005f3a92 by Jason Ekstrand at 2020-09-02T21:50:45+02:00 intel/nir: Pass the nir_builder by reference in lower_alpha_to_coverage I'm honestly not sure how passing a builder by-value ever worked. I guess the struct is mostly copyable. In any case, that's the wrong way to use it and it's causing issues. Fixes: 7ecfbd4f6d4 "nir: Add alpha_to_coverage lowering pass" Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6233> (cherry picked from commit 72dc06e07e3f8b9ed5bb46e3927b8f87dd24e42b) - - - - - ad9b24b0 by Jonathan Gray at 2020-09-02T21:50:45+02:00 util: unbreak endian detection on OpenBSD Since cbee1bfb34274668a05995b9d4c78ddec9e5ea4c endian.h is unconditionally used if available. glibc has byte order defines with two leading underscores. OpenBSD has private defines with a single leading underscore in machine/endian.h and public defines in endian.h with no underscore. The code under the endian.h block did not check if symbols were defined before equating them so '#if __BYTE_ORDER == __LITTLE_ENDIAN' would turn into '#if 0 == 0' which is always true. Fixes: cbee1bfb342 ("meson/configure: detect endian.h instead of trying to guess when it's available") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit 7eab6845e9dd49f0ef0bf9a7d986aaf685e77981) - - - - - 7af2b438 by Jonathan Gray at 2020-09-02T21:50:45+02:00 util/anon_file: add OpenBSD shm_mkstemp() path memfd_create() is a linux syscall replace the use of it with shm_mkstemp() on OpenBSD. unconditionally include stdlib.h for mkstemp()/mkostemp() Fixes: c0376a12341 ("util: add anon_file.h for all memfd/temp file usage") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit 6e9c0661f8538cdabe7d7de73af11b4165f51f93) - - - - - 7a001886 by Jonathan Gray at 2020-09-02T21:50:45+02:00 meson: build with _ISOC11_SOURCE on OpenBSD Mesa builds with -std=c99 but uses timespec_get() a c11 function. Build with _ISOC11_SOURCE for c11 visibility when -std is specified. On linux c11 visibility comes from defining _GNU_SOURCE. Fixes: e3a8013de8c ("util/u_queue: add util_queue_fence_wait_timeout") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit f9a7e6e854ddedafd3c85f7eaeca1a00ee7bced5) - - - - - 9b41f988 by Jonathan Gray at 2020-09-02T21:50:46+02:00 meson: conditionally include -ldl in gbm pkg-config file Follow libGL and only include -ldl in gbm pkg-config file if libdl was actually found. Many systems have these functions in libc and don't have libdl. Fixes: 816bf7d1644 ("meson: build gbm") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit 0398caa97fa6ab9a0eac29dfca38b3fceb2cc026) - - - - - 591853c7 by Jonathan Gray at 2020-09-02T21:50:46+02:00 util: futex fixes for OpenBSD Fix absolute to relative timeout computation. Add sanity checks to futex_wait() - handle the NULL timeout pointer case - avoid negative cases. >From Matthieu Herrb and Scott Cheloha. Fixes: c91997b6c43 ("util/futex: use futex syscall on OpenBSD") Signed-off-by: Jonathan Gray <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit c66c5b38e0ad136aa9301fd60aafea736d433c57) - - - - - 259b7605 by Jonathan Gray at 2020-09-02T21:50:46+02:00 util/u_thread: include pthread_np.h if found Required for pthread_set_name_np() on OpenBSD as there is no pthread_setaffinity_np() to define PTHREAD_SETAFFINITY_IN_NP_HEADER. Fixes: dcf9d91a80e ("util: Handle differences in pthread_setname_np") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> (cherry picked from commit 55765f80b9ce7cce4ec6a1c2bed6476776d9cbed) - - - - - f963c22f by Alyssa Rosenzweig at 2020-09-02T21:50:46+02:00 pan/mdg: Fix perspective combination It's not enough to multiply by a .w reciprocal, we have to be taking the reciprocal of the thing we're actually multiplying against. Fixes incorrect rendering in Manhattan. Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525> (cherry picked from commit 41d0a81c2a3f09701e8c694b520c8d900f6ac2f1) - - - - - 94bc5ae4 by Vinson Lee at 2020-09-02T21:50:46+02:00 vulkan: Fix memory leaks. Fix warnings reported by Coverity Scan. Resource leak (RESOURCE_LEAK) leaked_storage: Variable info going out of scope leaks the storage it points to. Fixes: 9bc5b2d169d3 ("vulkan: add initial device selection layer. (v6.1)") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6509> (cherry picked from commit 004119d5b7d4b1679e6dd691e9ab2ab7d65f8516) - - - - - 9e68c391 by Marek Olšák at 2020-09-02T21:50:47+02:00 gallivm: fix build on LLVM 12 due to LLVMAddConstantPropagationPass removal Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3465 Cc: 20.1 20.2 <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6531> (cherry picked from commit 52cac068621a5998f486f8e44f9c2d9d045d1c31) - - - - - 20c43709 by Samuel Pitoiset at 2020-09-02T21:50:47+02:00 nir/algebraic: mark some optimizations with fsat(NaN) as inexact If a is Nan, fsat(NaN) is expected to be 0 and some optimizations should be marked as inexact. Fixes a GPU hang with Death Stranding and RADV/ACO (RADV/LLVM isn't affected because it lowers fsat). No fossils-db change. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3368 Cc: mesa-stable Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6519> (cherry picked from commit bc123c396a99b2f6ff845792374d6a8d5de5d15e) - - - - - 6125dc5b by Roman Gilg at 2020-09-02T21:50:47+02:00 vulkan/wsi/x11: add sent image counter Add a counter to count how many images from our swapchain are currently "sent" to the X server via Present extension. An image is sent when it has been presented but we have not yet received an idle event for it. CC: mesa-stable Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Simon Ser <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6513> (cherry picked from commit d0bc1ad3776bce7d4b356e2a3d8bdbb9ae64e588) - - - - - 324c5269 by Roman Gilg at 2020-09-02T21:50:47+02:00 vulkan/wsi/x11: wait for acquirable images in FIFO mode In FIFO presentation mode we block either on our present-queue or on Present events after an image was transmitted. In case we receive completion events without idle events at some point we exhaust our acquire-queue and can not block anymore on present-queue. Ensure that the consumer has at least one image to acquire before blocking again on present-queue. Otherwise wait for one from the X server. CC: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3344 Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Simon Ser <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6513> (cherry picked from commit ec5e918ef4911d09b5611773bc58952b13ccef38) - - - - - 45bb7c16 by Eric Engestrom at 2020-09-02T21:50:47+02:00 scons: bump c++ standard to 14 to match meson Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1845 Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3500> (cherry picked from commit bc6d6fd0ed57c667377d9aae5cc4a7b4d56b1b6f) - - - - - aa70408a by Jason Ekstrand at 2020-09-02T21:50:48+02:00 nir: Add a nir_metadata_all enum value Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171> (cherry picked from commit e017ee95c113b3306708f54262d614cdf7440274) - - - - - f2c5bc10 by Jason Ekstrand at 2020-09-02T21:50:48+02:00 intel/nir: Rewrite the guts of lower_alpha_to_coverage I have no idea how this pass ever worked. I guess it worked ok on the one or two piglit tests but the whole thing seemed very fragile. It makes a number of undocumented and unasserted assumptions and they aren't always valid. This rewrite makes a number of changes: 1. It now properly handles the case where the gl_SampleMask write comes before the gl_FragColor or gl_FragData[0] write. 2. It should early-exit faster because it now looks at bits in shader_info::outputs_written instead of looking for variables. 3. Instead of the fragile variable lookup where we try to look the variable up by both location and driver_location and match, we just use the driver_location calculations used by brw_fs_nir. 4. It asserts that the index parameter to store_output is a constant instead of silently failing if it isn't. 5. We now actually assert the implicit assumption that the two writes are in the same block. We go even further and assert that they are in the last block in the shader. 6. In the case where 3 or fewer components of the output are written, we explicitly choose to leave the sample mask alone. Fixes: 7ecfbd4f6d4 "nir: Add alpha_to_coverage lowering pass" Closes: #3166 Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6233> (cherry picked from commit b6fdb1405ee2688ffc15acdf0476dece8bc8846b) - - - - - c9c84f54 by Jason Ekstrand at 2020-09-02T21:50:48+02:00 intel/fs: Fix MOV_INDIRECT and BROADCAST of Q types on Gen11+ The immediate case is pretty uncommon to see but it can happen, in theory. BROADCAST is typically used to uniformize values and those are usually 32-bit. However, it does come up in some subgroup ops. Fixes: 49c21802cbca "intel/compiler: Split has_64bit_types into float/int" Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6211> (cherry picked from commit cccb497d3c3bbc8f615fe79d774eb42a48e5a95c) - - - - - 62917dad by Lionel Landwerlin at 2020-09-02T21:50:48+02:00 intel/perf: store query symbol name Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6438> (cherry-picked from commit f1da3bb3d5ef8a7d11b8abc8534fc7d5ca875faa) - - - - - 65e52c4a by Lionel Landwerlin at 2020-09-02T21:50:48+02:00 intel/perf: fix raw query kernel metric selection The raw query is meant to be used with MDAPI [1]. When using this metric without this library, we usually selected the TestOa metric to provide some default sensible values (instead of undefined). Historically this TestOa metric lived in the kernel at ID=1. We removed all metrics from the kernel in kernel commit 9aba9c188da136 ("drm/i915/perf: remove generated code"). This fixes the Mesa code to use a valid metric set ID (1 could work some of the time, but not guaranteed). [1] : https://github.com/intel/metrics-discovery v2: Store fallback metric at init time v3: Drop TestOa lookout v4: Skip the existing queries (Marcin) Signed-off-by: Lionel Landwerlin <[email protected]> CC: <[email protected]> Tested-by: Marcin Ślusarz <[email protected]> (v1) Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6438> (cherry-picked from commit ec1fa1d51ff614c19d08c949482b40c060de48c9) - - - - - f08f211c by Jonathan Gray at 2020-09-02T21:50:48+02:00 anv: use os_get_total_physical_memory() Replace non-portable sysinfo() use with Mesa's os_get_total_physical_memory() Fixes: 060a6434eca ("anv: Advertise larger heap sizes") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517> (cherry picked from commit 81b163fb73ae73709d257badf4f5aaf3b63fca4a) - - - - - b28d1178 by Jonathan Gray at 2020-09-02T21:50:48+02:00 util/os_misc: add os_get_available_system_memory() Add os_get_available_system_memory() derived from src/intel/vulkan/anv_device.c get_available_system_memory() Fixes: b80930a6fea ("anv: add support for VK_EXT_memory_budget") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517> (cherry picked from commit 033dcb2978c6d95d42da944b8147228d239d32f4) - - - - - 730e3d51 by Jonathan Gray at 2020-09-02T21:50:49+02:00 anv: use os_get_available_system_memory() Replace local get_available_system_memory() function with os_get_available_system_memory(). Fixes: b80930a6fea ("anv: add support for VK_EXT_memory_budget") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517> (cherry picked from commit 5b1ed09ff023ff98fed0c78a5ea609821cb92a8c) - - - - - 25dae81b by Jonathan Gray at 2020-09-02T21:50:49+02:00 util/os_misc: os_get_available_system_memory() for OpenBSD Return the smallest value of available non-kernel physical memory and the static per process data size limit as the amount of available system memory on OpenBSD. Fixes: b80930a6fea ("anv: add support for VK_EXT_memory_budget") Signed-off-by: Jonathan Gray <[email protected]> Acked-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517> (cherry picked from commit b30bd6fe5f254d895c1dec780f24518b3e880ed4) - - - - - 321f6451 by Jonathan Gray at 2020-09-02T21:50:49+02:00 vulkan: make VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_EXT conditional Only advertise VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_EXT if CLOCK_MONOTONIC_RAW is defined. Fixes the build on OpenBSD which has CLOCK_MONOTONIC but not CLOCK_MONOTONIC_RAW. Fixes: 67a2c1493c0 ("vulkan: Add VK_EXT_calibrated_timestamps extension (radv and anv) [v5]") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517> (cherry picked from commit 4500e6e460dca068157862b95c7534d7d163c42c) - - - - - 73c77885 by Pierre-Eric Pelloux-Prayer at 2020-09-02T21:50:49+02:00 mesa/st: introduce PIPE_CAP_NO_CLIP_ON_COPY_TEX If supported this means that src_x/src_y/width/height parameters of CopyTex functions will not be clipped using the read framebuffer's dimensions. Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6259> (cherry picked from commit d94bec5c49d926069f97a4b12fb2532611a9080c) - - - - - 7f57ac62 by Pierre-Eric Pelloux-Prayer at 2020-09-02T21:50:49+02:00 radeonsi: enable PIPE_CAP_NO_CLIP_ON_COPY_TEX This fixes specviewperf13 catia test rendering. Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6259> (cherry picked from commit f8c0e20152b7f3f0b8d881648083a271ca528c28) - - - - - 0c96f0c6 by Pierre-Eric Pelloux-Prayer at 2020-09-02T21:50:49+02:00 ac/llvm: add option to clamp division by zero Replace div(x) by min(div(x), FLT_MAX)) to avoid getting a NaN result when x is 0. A cheaper alternative would be to use legacy mult instructions but they're not exposed by LLVM. Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6259> (cherry picked from commit 32f46a55c8229b2a8d67d895be18651a81f8e6ff) - - - - - 9fd8d602 by Pierre-Eric Pelloux-Prayer at 2020-09-02T21:50:50+02:00 radeonsi,driconf: add clamp_div_by_zero option Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6259> (cherry picked from commit b8445520cba818dbc53db95ce99e2beb00d8884e) - - - - - beb03cfc by Pierre-Eric Pelloux-Prayer at 2020-09-02T21:50:50+02:00 radeonsi: use radeonsi_clamp_div_by_zero for SPECviewperf13, Road Redemption Fixes SPECviewperf 13 creo rendering. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2639 Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6259> (cherry picked from commit a1c2bd6ce8981b34c0cf9333699b0ce75be6cb55) - - - - - c7fe43b8 by Eric Engestrom at 2020-09-02T21:51:56+02:00 docs: add release notes for 20.1.7 - - - - - c0e5cf9a by Eric Engestrom at 2020-09-02T21:53:06+02:00 VERSION: bump to release 20.1.7 - - - - - 30 changed files: - .gitlab-ci/deqp-freedreno-a630-fails.txt - .pick_status.json - VERSION - docs/relnotes/20.1.6.html - + docs/relnotes/20.1.7.html - meson.build - scons/gallium.py - src/amd/compiler/aco_instruction_selection.cpp - src/amd/llvm/ac_nir_to_llvm.c - src/amd/llvm/ac_shader_abi.h - src/amd/vulkan/meson.build - src/amd/vulkan/radv_device.c - src/amd/vulkan/radv_meta_blit.c - + src/amd/vulkan/vulkan.sym - src/broadcom/cle/v3d_packet_v33.xml - src/compiler/glsl/ir.cpp - src/compiler/glsl/lower_vector_derefs.cpp - src/compiler/glsl/lower_vector_insert.cpp - src/compiler/nir/nir.h - src/compiler/nir/nir_opt_algebraic.py - src/gallium/auxiliary/gallivm/lp_bld_init.c - src/gallium/auxiliary/util/u_screen.c - src/gallium/docs/source/screen.rst - src/gallium/drivers/etnaviv/etnaviv_context.c - src/gallium/drivers/etnaviv/etnaviv_resource.c - src/gallium/drivers/etnaviv/etnaviv_resource.h - src/gallium/drivers/etnaviv/etnaviv_transfer.c - src/gallium/drivers/freedreno/freedreno_resource.c - src/gallium/drivers/panfrost/pan_blend_cso.c - src/gallium/drivers/panfrost/pan_job.c The diff was not included because it is too large. View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/11a9fde22bfa77b8d4d682670aa34d825d69de81...c0e5cf9a874dc573a8e012216179c4b94e19ef13 -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/11a9fde22bfa77b8d4d682670aa34d825d69de81...c0e5cf9a874dc573a8e012216179c4b94e19ef13 You're receiving this email because of your account on salsa.debian.org.

