Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa
Commits: 78ef6330 by Eric Engestrom at 2023-02-08T22:24:16+00:00 docs/relnotes: add sha256sum for 22.3.5 - - - - - 63071f29 by Eric Engestrom at 2023-02-10T10:19:26+00:00 .pick_status.json: Update to 94eff7ccd86658603155261c2fd59491786e7047 - - - - - 64f6793b by Georg Lehmann at 2023-02-10T10:19:50+00:00 aco: don't allow output modifiers for v_cvt_pkrtz_f16_f32 Cc: mesa-stable Reviewed-by: Rhys Perry <pendingchao...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21174> (cherry picked from commit b63aa2bb8ee6c6a255ea6d573b71af12d5dd166d) - - - - - c7fdaf33 by Eric Engestrom at 2023-02-10T13:56:17+00:00 .pick_status.json: Mark f7b2dbb2bdc366dd294407c5653654ad6059e2ac as denominated - - - - - 449caf67 by Tapani Pälli at 2023-02-10T13:56:17+00:00 intel/blorp: disable REP16 for gfx12+ with R10G10B10_FLOAT_A2 Cc: mesa-stable Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> Reviewed-by: Nanley Chery <nanley.g.ch...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21137> (cherry picked from commit 88cadf145451b3a5fd89b5937238abf95821c5cf) - - - - - ac80ae62 by Lionel Landwerlin at 2023-02-10T13:56:17+00:00 intel/fs: fix mesh indirect movs The size in src[2] is in byte and needs to cover any possible data accessed in src[0] by the indirection. That way the register allocation is aware of what cannot be spilled for the instruction to execute on valid data. Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 70ace2bbcd ("intel/compiler: Implement Task Output and Mesh Input") Reviewed-by: Marcin Ślusarz <marcin.slus...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21188> (cherry picked from commit ebc4893947c187c1a3f28508053633edf7d314a2) - - - - - 3077937b by Eric Engestrom at 2023-02-10T13:56:17+00:00 .pick_status.json: Mark db6c374919ea16be6f9a6f96d5c9e866c62c556c as denominated - - - - - ba0e805d by Dave Airlie at 2023-02-10T13:56:17+00:00 crocus: disable Y tiling for render targets properly. The old code would disallow linear targets as well which would confuse things with reimporting dma-bufs. Fixes: 32728dc66e36 ("crocus: introduce main resource configuration helper.") Acked-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21209> (cherry picked from commit 6043f66dd3329c92681fc4be5a1e54e522c1cb80) - - - - - e4483218 by GH Cao at 2023-02-10T16:35:29+00:00 dzn: Declare debug only root_dwords as ASSERTED Such variable is only used in assert(), so declare it as ASSERTED. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7885 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7234 Signed-off-by: GH Cao <driver1998...@outlook.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20676> (cherry picked from commit af55e36d798b91b86795544aac2d9e3983cde207) - - - - - 6fe167e2 by Eric Engestrom at 2023-02-12T10:54:11+00:00 .pick_status.json: Update to c0bc0ecf9eaf964ceb4a1573595da8b8b4585cc4 - - - - - cb0e344a by Mike Blumenkrantz at 2023-02-12T10:54:25+00:00 zink: add newlines to some debug printfs cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21239> (cherry picked from commit cd446b87e1f5ec2c5f1273627c611325595d1971) - - - - - d805e748 by Danylo Piliaiev at 2023-02-12T10:54:40+00:00 tu: Prevent using stale value of GRAS_SC_CNTL in sysmem clear cc: mesa-stable Signed-off-by: Danylo Piliaiev <dpilia...@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21148> (cherry picked from commit 388e4ea7333972251dbe8ce91d15ad4001589f35) - - - - - 98050ce3 by Danylo Piliaiev at 2023-02-12T10:54:41+00:00 turnip: Disable draw states after dyn renderpass in all cases Draw states were not disabled after a dynamic renderpass which spans several command buffers, the next renderpass if started in the same command buffer wouldn't emit the full draw state, since TU_CMD_DIRTY_DRAW_STATE was not set by previous renderpass. The issue could be observed when corrupting all regs at cmdbuf start in: dEQP-VK.dynamic_rendering.primary_cmd_buff.random.seed7_geometry Fixes: cb0f414b2aed88f48b2593dad833844be2f5f42b ("tu: Add support for suspending and resuming renderpasses") Signed-off-by: Danylo Piliaiev <dpilia...@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21148> (cherry picked from commit 2d20564a6aaf8e5802ae1d3d425a4a496124b976) - - - - - fa4947e6 by Sviatoslav Peleshko at 2023-02-12T10:54:43+00:00 anv: Handle VkAccelerationStructureBuildRangeInfoKHR::transformOffset Previously it was not actually handled. This meant that all geometries with the same transform buffer were using the same (first) transformation matrix. Fixes: f3ddfd81 ("anv: Build BVHs on the GPU with GRL") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7575 Signed-off-by: Sviatoslav Peleshko <sviatoslav.peles...@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21227> (cherry picked from commit 9b2ddd2c5ecd6b60752db3bb6d507611c8b6d9d8) - - - - - 418f1812 by Bas Nieuwenhuizen at 2023-02-12T10:55:06+00:00 nir: Apply a maximum stack depth to avoid stack overflows. A stackless (or at least using allocated memory for stack) version might be nice but for now this works around some games compiling large shaders and hitting stack overflows. CC: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21231> (cherry picked from commit 0a17c3afc5e0491d7ea334241bb230c64a015f83) - - - - - 130dbe0e by Eric Engestrom at 2023-02-14T12:41:08+00:00 .pick_status.json: Update to 75e5d458a006838f5222eb1fac5852c31c71d97f - - - - - 5d515d7a by Michel Dänzer at 2023-02-14T12:41:09+00:00 glsl/standalone: Fix up _mesa_reference_shader_program_data signature Drop the unused ctx parameter, to match the main Mesa code. Fixes ODR violation flagged by -Wodr with LTO enabled: ../src/mesa/main/shaderobj.h:74:1: error: ‘_mesa_reference_shader_program_data’ violates the C++ One Definition Rule [-Werror=odr] 74 | _mesa_reference_shader_program_data(struct gl_shader_program_data **ptr, | ^ ../src/compiler/glsl/standalone_scaffolding.cpp:76:1: note: type mismatch in parameter 1 76 | _mesa_reference_shader_program_data(struct gl_context *ctx, | ^ ../src/compiler/glsl/standalone_scaffolding.cpp:76:1: note: ‘_mesa_reference_shader_program_data’ was previously declared here ../src/compiler/glsl/standalone_scaffolding.cpp:76:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used Fixes: 717a720e9c95 ("mesa: drop unused context parameter to shader program data reference.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21215> (cherry picked from commit bf67f32d4b4214ef23311b7ff5f1ef21ae84fa24) - - - - - 5e8b3d3c by Michel Dänzer at 2023-02-14T12:41:11+00:00 glsl/standalone: Do not pass memory allocated with ralloc_size to free Pointed out by GCC: In function ‘load_text_file’, inlined from ‘standalone_compile_shader’ at ../src/compiler/glsl/standalone.cpp:491:38, inlined from ‘main’ at ../src/compiler/glsl/main.cpp:98:45: ../src/compiler/glsl/standalone.cpp:358:17: error: ‘free’ called on pointer ‘block_195’ with nonzero offset 48 [-Werror=free-nonheap-object] 358 | free(text); | ^ In function ‘ralloc_size’, inlined from ‘load_text_file’ at ../src/compiler/glsl/standalone.cpp:352:31, inlined from ‘standalone_compile_shader’ at ../src/compiler/glsl/standalone.cpp:491:38, inlined from ‘main’ at ../src/compiler/glsl/main.cpp:98:45: ../src/util/ralloc.c:117:18: note: returned from ‘malloc’ 117 | void *block = malloc(align64(size + sizeof(ralloc_header), | ^ Fixes: a9696e79fb3a ("main: Close memory leak of shader string from load_text_file.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21215> (cherry picked from commit 49a6bdde8ef1da38df3f15e8478c8cad116eab46) - - - - - cb48348f by Hans-Kristian Arntzen at 2023-02-14T12:41:12+00:00 radv: Fix invalid 64-bit shift. For sync2 bits, overflow can happen. Use BITFIELD64_BIT to align with ANV. Signed-off-by: Hans-Kristian Arntzen <p...@arntzen-software.no> Fixes: 8df17163c78 ("radv: implement vkCmdWaitEvents2KHR") Reviewed-by: Timur Kristóf <timur.kris...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21271> (cherry picked from commit 97aa8d9547ec00109853f1a4a43e4abfad7f6aa7) - - - - - 57edba15 by Hans-Kristian Arntzen at 2023-02-14T12:41:13+00:00 radv: Fix missing VK_ACCESS_2_SHADER_SAMPLED_READ_BIT. Cannot be used for SSBO, so ignore SCACHE invalidation. Signed-off-by: Hans-Kristian Arntzen <p...@arntzen-software.no> Fixes: 8df17163c78 ("radv: implement vkCmdWaitEvents2KHR") Reviewed-by: Timur Kristóf <timur.kris...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21271> (cherry picked from commit 7efabfbbe4f5ae442e62803a7e173bd2bf20001a) - - - - - 23d9e6da by Mike Blumenkrantz at 2023-02-14T14:42:10+00:00 zink: unset gfx shader read when unbinding shader images this otherwise will never be unset Fixes: 50e764fa50d ("zink: track gfx/compute descriptor barrier info") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21229> (cherry picked from commit ee53b07c0ab16c0944cd96e3dc5d4d49d9198bac) - - - - - b9f89132 by Mike Blumenkrantz at 2023-02-14T17:48:06+00:00 zink: sync LTO compiles for GPL pipelines on shader free this avoids invalid access affects: KHR-Single-GL46.arrays_of_arrays_gl.InteractionStorageBuffers2 Fixes: 41ffb15de56 ("zink: implement async gfx precompile") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21246> (cherry picked from commit 16c019142ba449818623e0af08b1fb4ceec51ef3) - - - - - 6e9c95f6 by Mike Blumenkrantz at 2023-02-14T17:48:07+00:00 zink: fix descriptor pool free iterating these arrays are sparsely allocated, and using pop() on them will fail to access some elements Fixes: cf7c17a7af3 ("zink: rework descriptor pool overflow") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21246> (cherry picked from commit ffd91ee7a87f588ea9d1f2f6ced4a59bde142cb2) - - - - - d233bf7c by Mike Blumenkrantz at 2023-02-22T20:26:54+00:00 zink: ralloc zink_shader structs Reviewed-by: Emma Anholt <e...@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169> (cherry picked from commit 9e0e6708edcaa5480a3195bea5dde2d75d27fafc) - - - - - 2cb4f5a1 by SoroushIMG at 2023-02-22T20:29:15+00:00 zink: fix compute shader leaks Compute program owns the nir and zink shaders now and must free them too when destroyed. Fixes: 4cb4bb555e7 ("zink: create compute programs from compute shaders directly") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21285> (cherry picked from commit 6af3a12e700065ca4b8b3a5d12b97a75142dd185) - - - - - 840e0b94 by SoroushIMG at 2023-02-22T20:29:15+00:00 zink: allocate program shader caches from the program's mem ctx these will now be freed when the program itself is freed. cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21285> (cherry picked from commit b3ed037ca8d8cb28deb9a160411257d54c57f8e1) - - - - - 9ed54537 by SoroushIMG at 2023-02-22T20:29:15+00:00 zink: free resource objects' views array during destruction since the array is not ralloc managed, it has be explicitly freed. cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21285> (cherry picked from commit 96849363eba081321176f8ad3ce303677a531eae) - - - - - 7cab0f78 by Lionel Landwerlin at 2023-02-22T20:29:15+00:00 anv/hasvk: handle a SAMPLED_READ/STORAGE_READ access flags Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Cc: mesa-stable Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21277> (cherry picked from commit eb5d7056e04460be3b1152234ea7c8c21104fe04) - - - - - 1eb54128 by Mike Blumenkrantz at 2023-02-22T20:29:15+00:00 zink: always use NEAREST for zs blits LINEAR is illegal, and swapping filtering at this point still seems to be conformant given questionable GL spec requirements for LINEAR zs filtering cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21203> (cherry picked from commit 067545eb9af79414054e4bef3ab48af003758663) - - - - - 10d72a45 by Alan Coopersmith at 2023-02-22T20:29:15+00:00 util/disk_cache: Handle OS'es without d_type in struct dirent Needed to build on Solaris Fixes: f58e6fee745 ("util/disk_cache: delete more cache items in one go when full") Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> Reviewed-by: Eric Engestrom <e...@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21110> (cherry picked from commit 289eb50abf89289af7cd76fa948d33c5cb5b28bf) - - - - - 45db0c5a by Eric Engestrom at 2023-02-22T20:29:15+00:00 .pick_status.json: Mark 5c246e21b71a1676705440bce767535dc502d748 as denominated - - - - - 09306961 by Dave Airlie at 2023-02-22T20:29:15+00:00 crocus: switch gen4/5 tiling flags to follow suggestions. Fixes: 6043f66dd332 ("crocus: disable Y tiling for render targets properly.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21300> (cherry picked from commit 6d3c79fa4c8d539b5ad133996632cbe6c1137477) - - - - - f4b6574c by Samuel Pitoiset at 2023-02-22T20:29:15+00:00 radv: disable DCC for mipmaps on GFX11 It seems broken but can't really figure out why and DCC levels aren't interleaved on GFX11. Skipping DCC initialization for levels seems to also fix it but seems safer to disable completely, as a hotfix. Fixes DCC issues with Hi-Fi Rush, Sonic Frontiers, Hogwarts Legacy and probably more. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8230 Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21186> (cherry picked from commit 5d41d8258a71fa352d8129bf33ce877046a9313c) - - - - - 6f874768 by Eric Engestrom at 2023-02-22T20:29:15+00:00 .pick_status.json: Mark 75e5d458a006838f5222eb1fac5852c31c71d97f as denominated - - - - - bfbbe34d by Eric Engestrom at 2023-02-22T20:29:15+00:00 .pick_status.json: Update to dd3b67b9746f1d0f2766d6c39bb23e59d6548aba - - - - - 8e053f00 by Michel Dänzer at 2023-02-22T20:29:15+00:00 anv/grl: Use union for reinterpreting integer as float Fixes strict aliasing violations flagged by GCC 12: ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h: In function ‘float as_float(uint32_t)’: ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h:182:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 182 | return *reinterpret_cast<float*>(&i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h: In function ‘float3 as_float3(int3)’: ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h:187:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 187 | return *reinterpret_cast<float3*>(&i3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h:187:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h: In function ‘float4 as_float4(int4)’: ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h:192:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 192 | return *reinterpret_cast<float4*>(&i4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/intel/vulkan/grl/include/GRLOCLCompatibility.h:192:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Fixes: 5f948503e40c ("anv: Import GRL") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21236> (cherry picked from commit 53ce756eebef47a37ababc6c3c701752b6451366) - - - - - af1a8e98 by Eric Engestrom at 2023-02-22T20:29:15+00:00 .pick_status.json: Mark b68f13bc9078e8d86edc06e081bb146f8b9b3ad6 as denominated - - - - - 7f2afea6 by Georg Lehmann at 2023-02-22T20:29:15+00:00 aco: Don't use vcmpx with DPP. V_CMPX+DPP returns 0 with reads from disabled lanes, unlike V_CMP+DPP (RDNA3 ISA doc, 7.7) Fixes: baab6f18c91 ("aco: Optimize branching sequence during SSA elimination.") Reviewed-by: Timur Kristóf <timur.kris...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20537> (cherry picked from commit 4fbcd046ceb7c1b20cd6d664b29881a7e0f5eef8) - - - - - 385f9a96 by Lionel Landwerlin at 2023-02-22T20:29:15+00:00 intel/fs: bound subgroup invocation read to dispatch size This is to avoid out of bound register accesses (potentially leading to hangs) when the dispatch size is smaller than when is reported in the NIR subgroup_size. v2: Implement bounding with a mask (since workgroup sizes are powers of 2) (Faith) Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 530de844ef4d ("intel,anv,iris,crocus: Drop subgroup size from the shader key") Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21282> (cherry picked from commit 9ac192d79dbef726983d704c3e965e3b058769f6) - - - - - 70e8f8b4 by Mike Blumenkrantz at 2023-02-22T20:29:15+00:00 zink: block LINEAR filtered blits for zs formats this is illegal, and the u_blitter path has to be taken to guarantee enough accuracy that the strictest piglit tests pass cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21314> (cherry picked from commit f0e1512673d07530f4631c9664c868698c512ac4) - - - - - 255b5edd by Constantine Shablya at 2023-02-22T20:29:15+00:00 anv,hasvk: flush what UNIFORM_READ flushes on SHADER_READ Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8287 Cc: mesa-stable Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21310> (cherry picked from commit 09501fe5a7d049d6850c5e4e88d76d77f00c33f5) - - - - - 16d47a06 by Chia-I Wu at 2023-02-22T20:29:15+00:00 turnip: fix a major leak with GPL LTO This allows dEQP-VK.pipeline.pipeline_library.* to run to finish. Fixes: e9f5de11d40 ("tu: Initial implementation of VK_EXT_graphics_pipeline_library") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21328> (cherry picked from commit bce8e7f2ae5e898575ae183773182073468b0cc0) - - - - - 8412c9a9 by Pierre-Eric Pelloux-Prayer at 2023-02-22T20:29:15+00:00 amd/surface: fix base_mip_width of subsampled formats base_mip_width is used in si_compute_copy_image when the SI_IMAGE_ACCESS_BLOCK_FORMAT_AS_UINT flag is used. width = tex->surface.u.gfx9.base_mip_width; This will be incorrect if we don't adjust it. For instance, with a 260x256 image, surf_pitch and base_mip_width are 320 before surf_pitch is updated to be 192. Both need to match, or computing the width from base_mip_width leads to incorrect result. Cc: mesa-stable Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-pra...@amd.com> Reviewed-by: Marek Olšák <marek.ol...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21253> (cherry picked from commit affa8a9fb2f3ed02ab812bf8f991783683fd408d) - - - - - 515f3536 by Mike Blumenkrantz at 2023-02-22T20:29:15+00:00 dri3: avoid deadlocking when polling deleted windows for events upcoming xserver releases will emit PresentConfigureNotify with this flag set when a window is destroyed, ensuring drivers don't poll infinitely and deadlock Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/116 cc: mesa-stable Reviewed-by: Adam Jackson <a...@redhat.com> Reviewed-by: Michel Dänzer <mdaen...@redhat.com> Acked-by: Daniel Stone <dani...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21339> (cherry picked from commit 91de576a7f67c953b7a69fd45e1eb3b2a0dde996) - - - - - 1a26e489 by Mike Blumenkrantz at 2023-02-22T20:29:16+00:00 vulkan/wsi: avoid deadlocking dri3 when polling deleted windows for events upcoming xserver releases will emit PresentConfigureNotify with this flag set when a window is destroyed, ensuring drivers don't poll infinitely and deadlock fixes #6685 cc: mesa-stable Reviewed-by: Adam Jackson <a...@redhat.com> Reviewed-by: Michel Dänzer <mdaen...@redhat.com> Acked-by: Daniel Stone <dani...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21339> (cherry picked from commit 819cbf329a56f1e72a4192b727c7a6d44ad2c2d7) - - - - - 245ee954 by Emma Anholt at 2023-02-22T20:29:16+00:00 hasvk: Fix SPIR-V warning about TF unsupported on gen7. It's supported now. Fixes: d82826ad4446 ("anv: Implement VK_EXT_transform_feedback on Gen7") Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21228> (cherry picked from commit ed62eec58b145f9992e1411c6ce972eb588e3dfc) - - - - - 609da742 by Sidney Just at 2023-02-22T20:29:16+00:00 zink: Add missing features to the profile file Fixes: 2ea481b2f0a ("Zink: add Zink profiles file") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20920> (cherry picked from commit fc84c63e17baa9790baa0d63e21f81ef1b10a745) - - - - - 7f6062bf by Faith Ekstrand at 2023-02-22T20:29:16+00:00 nir/from_ssa: Only re-locate values that are destinations There is an optimization in the parallel copy algorithm where, after a copy has been performed, we can treat the destination as the new source for future copies of the same source. In particular, consider the following parallel copy: A -> B, C -> A, A -> C. In this case, after we have done the A -> B copy, we can make note that the value in A is now in B and emit the sequence: A -> B, C -> A, B -> C. This allows us to resolve the swap cycle between A anc C without allocating a temporary register because we know B is also a copy of A. When one of the registers involved is convergent and the other is divergent, this optimization is problematic because, while convergent to divergent copies are fine, we can't re-use the divergent copy in later copies if any of those copies are to a convergent variable. We could, but it would require a read_first_invocation which would get messy. In In c7fc44f9ebbe ("nir/from_ssa: Respect and populate divergence information"), we attempted to deal with this by limiting the rename optimization to the case where the divergence matched. The problem is that we did the re-name part whenever the divergence matched but only marked it as ready if the thing being copied was a destination. (We actually left two instances of loc[a] = b, one which always happened and one which only happened if we also wanted to flag the source as being ready to use as a destination.) While this technically doesn't cause any problems, it may result in more inter-mov dependencies which hurts instruction scheduling. For example, if we had the parallel copy A -> B, A -> C, A -> D, we now end up emitting the sequence A -> B, B -> C, C -> D which has many more data hazards between instructions caused by the constant shuffling. This commit restores the original logic in which we only perform the rename optimization if the rename would free up a register we will later use as a destination. This isn't entirely optimal as it still doesn't prove that there is a cycle involved first, but it should lead to a reduction in unnecessary dependencies. No shader-db changes on SKL or DG2 Fixes: c7fc44f9ebbe ("nir/from_ssa: Respect and populate divergence information") Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21315> (cherry picked from commit 5afba073c6ba047e7c0e8e8824855566d15cba35) - - - - - 70e53f2d by Faith Ekstrand at 2023-02-22T20:29:16+00:00 nir/from_ssa: Move the loop bounds check in resolve_parallel_copy We loop, effectively, over two stacks: ready and to_do and finish only when both are empty. In the case where ready is empty, we pull one off of to_do, add a copy to a temporary, and push it onto the ready stack. Previously, we assumed that we would never get to the temporary copy case if to_do has exactly one entry because that would imply that there was only one copy left which means there can't possibly be a cycle to break. This was true until c7fc44f9ebbe ("nir/from_ssa: Respect and populate divergence information") which changed things such that temporary copies sometimes get added in the case where a convergent value is copied both to convergent and divergent destinations. This patch adjusts our loop iteration to always attempt to clear the ready stack before checking if there's anything left on the to_do stack. I also added an assert to make the exit condition more clear. Fixes: c7fc44f9ebbe ("nir/from_ssa: Respect and populate divergence information") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8037 Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Daniel Schürmann <dan...@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21315> (cherry picked from commit 4e09d37f3bd4b2f5837040cb1695d151672944e1) - - - - - 83fc369a by Italo Nicola at 2023-02-22T20:29:16+00:00 panfrost: fix tiny sample_positions BO memory leak Fixes a 4KB memory leak that happens once per-device creation. Cc: mesa-stable Signed-off-by: Italo Nicola <italonic...@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Tested-by: Chris Healy heal...@amazon.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21372> (cherry picked from commit e787ddf2981b224bcf22c310f6bcb116aa1dff81) - - - - - bcbfb7dc by Erico Nunes at 2023-02-22T20:29:16+00:00 lima: don't use resource_from_handle while creating scanout resource_from_handle implementations create an additional reference to the scanout resource, which caused lima to leak those resources after commit ad4d7ca8332488be8a75aff001f00306a9f6402e. Do as the other drivers do and import the bo directly while creating the scanount resource. Cc: 22.3 mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8198 Signed-off-by: Erico Nunes <nunes.er...@gmail.com> Reviewed-by: Vasily Khoruzhick <anars...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21330> (cherry picked from commit c426e5677f36c3b0b8e8ea199ed4f2c7fad06d47) - - - - - 2029f4bd by Samuel Pitoiset at 2023-02-22T20:29:16+00:00 Revert "radv: acquire pstate on-demand when capturing with RGP" This change is wrong for two reasons: - it hangs most of the time maybe, because changing PSTATE when the application is running is broken somehow - it increases the time between triggering and generating the capture considerably, because there is a delay for changing PSTATE This restores previous logic where PSTATE is set to profile_peak at logical device creation. Though, it also re-introduces an issue with multiple logical devices (kernel returns -EBUSY) but this will be fixed in the next commit. This fixes GPU hangs when trying to record RGP captures on my NAVI21. Note that profile_peak is only required for some RDNA2 chips (including VanGogh). Cc: mesa-stable This reverts commit 923a864d94517462698c529bdc0e5c056d37b4e1. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21222> (cherry picked from commit 663877e8943d074e6ac520a8312f221e6a45e629) - - - - - 35d330ed by Samuel Pitoiset at 2023-02-22T20:29:16+00:00 radv/amdgpu: only set a new pstate if the current one is different AMDGPU pstate is per context but if there is multiple AMDGPU contexts in flight, the kernel can return -EBUSY. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21222> (cherry picked from commit 6d73841d34f6a715a7c1ca3387fea3c3456b1615) - - - - - 07d5b352 by Timur Kristóf at 2023-02-22T20:29:16+00:00 radv: Call nir_lower_array_deref_of_vec in radv_lower_io_to_scalar_early. This fixes an issue when a vector component of an arrayed output has a deref. Signed-off-by: Timur Kristóf <timur.kris...@gmail.com> Reviewed-by: Rhys Perry <pendingchao...@gmail.com> Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8197 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21028> (cherry picked from commit e13074d76312ca95648460629aef7021ee7482d1) - - - - - 49f745a6 by Marek Olšák at 2023-02-22T20:29:16+00:00 mesa: ignore indices[i] if count[i] == 0 for MultiDrawElements Cc: mesa-stable Reviewed-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21039> (cherry picked from commit e2ad086f485b82e59b37dd87e7e6e6393bb62257) - - - - - 2da88f4b by Timothy Arceri at 2023-02-22T20:29:16+00:00 glsl: add _token_list_prepend() helper to the parser This will be used in the following patch. Cc: mesa-stable Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21352> (cherry picked from commit 6e29dce291c45ee0460ddefb34d86b0859f5ce03) - - - - - b74f1d09 by Timothy Arceri at 2023-02-22T20:29:16+00:00 glsl: isolate object macro replacments Here we use a leading space to isolate them from the code they will be inserted into. For example: #define VALUE -1.0 int a = -VALUE; Should be evaluated to int a = - -1.0; not int a = --1.0; Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7932 Cc: mesa-stable Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21352> (cherry picked from commit 3a9edfc4943d28894b0a39b6ee3350e57a979d79) - - - - - f96201f6 by Charmaine Lee at 2023-02-22T20:29:16+00:00 svga: fix resource_get_handle from resource created without SHARED bind flag When an EGLImage is created from a 2D texture and used for texture sharing, the texture surface might not have been created with the SHARED bind flag.. To allow these surfaces for sharing, this patch sets the USAGE SHARED bit for surfaces that can be potentially used for sharing even when the SHARED bind flag is not originally set. Instead of unconditionally enabling the SHARED bind flag for all surfaces and unnecessarily bypass the surface cache optimization, this patch only enables the USAGE SHARED bit for surfaces that also have the RENDER TARGET bind flag. When the surface handle is inquired and if the surface is currently marked as cachable, we will need to unset the cachable bit so the surface handle will not be recycled again. This patch fixes an assertion in svga_resource_get_handle() when the EGL_MESA_image_dma_buf_export extension is used in webgl benchamrk running from firefox in Fedora 37. Cc: mesa-stable Reviewed-by: Martin Krastev <krast...@vmware.com> Reviewed-by: Jose Fonseca <jfons...@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21393> (cherry picked from commit 75b7296fc36d302a4901da93f4cd3e51e6e6f8f1) - - - - - 527787da by Charmaine Lee at 2023-02-22T20:29:16+00:00 svga: fix compatible formats for shareable surfaces Add typeless format to the compatible format lists for shareable surfaces.. Fixes webgl benchmark crash in eglCreateImage running from firefox on Fedora 37. Cc: mesa-stable Reviewed-by: Martin Krastev <krast...@vmware.com> Reviewed-by: Jose Fonseca <jfons...@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21393> (cherry picked from commit 3a359385cb1560fde560edc74f7a070ef1e3d953) - - - - - 09802e77 by Charmaine Lee at 2023-02-22T20:29:16+00:00 svga: use upload buffer if texture has pending changes When establishing a texture transfer map, if there is any pending changes on the texture, instead of trying direct map with DONTBLOCK first, just use the upload buffer path. Fixes piglit tests gen-teximages, arb_copy_images-formats Cc: mesa-stable Reviewed-by: Neha Bhende <bhen...@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21393> (cherry picked from commit 1b9b060f0eee19da426daffe37de30a9200b15b2) - - - - - 538f9ad0 by Mike Blumenkrantz at 2023-02-22T20:29:16+00:00 kopper: fix loop iterating for msaa texture creation the pipe_resource template values need to always be initialized or else texture creation fails and rendering is broken fixes #8331 cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21450> (cherry picked from commit b43d32b77d000d8bce560360c93cb9845af62662) - - - - - af0e91d6 by Sviatoslav Peleshko at 2023-02-22T20:29:16+00:00 driconf/anv: Apply limit_trig_input_range WA to Rise of the Tomb Raider During its Ambient Occlusion calculations the game ends up calculating sin/cos of some pretty big values, for which HW produces completely bogus results (e.g. cos(3929491.25) ~= -0.011, while correct would be ~0.923).. Limit the arguments to the reasonable (-2*Pi; 2*Pi) range with the limit_trig_input_range WA. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8292 Signed-off-by: Sviatoslav Peleshko <sviatoslav.peles...@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21396> (cherry picked from commit 42dba8ebc555bc7ba2e7a86d19eabf4c6d7a3f7f) - - - - - e96d7e45 by Mike Blumenkrantz at 2023-02-22T20:29:16+00:00 driconf: add zink glthread disable for a game ref #8333 fixes #8328 cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21424> (cherry picked from commit 50a65e2e2b4d30eead16a1d214a0b575763de04b) - - - - - 26a199d0 by Eric Engestrom at 2023-02-22T20:35:50+00:00 docs: add release notes for 22.3.6 - - - - - 23405588 by Eric Engestrom at 2023-02-22T20:35:56+00:00 VERSION: bump for 22.3.6 - - - - - 5b3a7d1f by Timo Aaltonen at 2023-02-26T11:11:31+02:00 Merge branch 'upstream-unstable' into debian-unstable - - - - - 80bda973 by Timo Aaltonen at 2023-02-26T11:15:32+02:00 version bump - - - - - 9ea39a0f by Timo Aaltonen at 2023-02-26T11:19:38+02:00 release to sid - - - - - 0 changed files: The diff was not included because it is too large. View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/b54a6a016ab9698fa8361d2437e14419e17eb7fa...9ea39a0f992a209f9f9c5837ce9d29e0b5e3917c -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/b54a6a016ab9698fa8361d2437e14419e17eb7fa...9ea39a0f992a209f9f9c5837ce9d29e0b5e3917c You're receiving this email because of your account on salsa.debian.org.