Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa
Commits: 09ebf2db by Eric Engestrom at 2024-07-31T17:43:02+02:00 docs: add sha256sum for 24.1.5 - - - - - 41fcf9bf by Eric Engestrom at 2024-08-14T11:13:23+02:00 .pick_status.json: Update to c90e2bccf756004e48f9e7e71e555db0d03c1b98 - - - - - c1a46271 by David Rosca at 2024-08-14T11:13:23+02:00 radeonsi/vcn: Add decode DPB buffers as CS dependency This is needed to ensure correct synchronization in kernel eg. when it moves the buffers between VRAM and GTT. Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com> (cherry picked from commit 0c024bbe641b092bbbc751baae54a37642794de0) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30537> - - - - - dd3862c1 by Marek Olšák at 2024-08-14T17:19:22+02:00 nir/opt_algebraic: use fmulz for fpow lowering to fix incorrect rendering The original implementation in all radeon drivers had this behavior. Fixes: 9bc1fb4c07fa3e - ac/llvm,radeonsi: lower nir_fpow for aco and llvm Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11464 Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-pra...@amd.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30069> - - - - - 732f9112 by Eric Engestrom at 2024-08-14T17:48:33+02:00 .pick_status.json: Update to cc2dbb8ea5329b509d79eedb6c0cbb9a1903b5ad - - - - - b63aeb37 by Karol Herbst at 2024-08-14T17:48:43+02:00 Revert "rusticl/queue: gracefully stop the worker thread" Apparently this code caused issues and the fix was only papering over the issue, which I now I can't trigger anyway. This reverts commit 9d458b7fc15a87720397b5b3d94a0971ed4aa59d. Fixes: 9d458b7fc15 ("rusticl/queue: gracefully stop the worker thread") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30067> (cherry picked from commit 47377b550f394e8d7fb1a79e8abd801214865027) - - - - - fdb48555 by Konstantin Seurer at 2024-08-14T17:52:23+02:00 aco: print s_delay_alu INSTSKIP>3 correctly INSTSKIP has 3 bits. Fixes: 94958e6 ("aco: improve printing of s_delay_alu") Reviewed-by: Rhys Perry <pendingchao...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30401> (cherry picked from commit f8bf9f07b6e60240ed4789fbde1599a331d58ec1) - - - - - f2a0f842 by Karol Herbst at 2024-08-14T17:52:25+02:00 nouveau: handle realloc failure inside cli_kref_set Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11477 Fixes: 821f4c8d99a ("nouveau: import libdrm_nouveau") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30374> (cherry picked from commit 801078cbf8e69f0b285c908c4017257798d0940a) - - - - - 54a1b52e by Rob Clark at 2024-08-14T17:58:51+02:00 tu: Fix issues with 16k (or larger) page sizes The iova allocations need to be CPU page aligned. (The GPU itself always supports 4k mappings regardless of the smallest CPU page size, but GEM buffer allocations must be an integer number of CPU pages.) Signed-off-by: Rob Clark <robdcl...@chromium.org> Fixes: 63904240f21b ("tu: Re-enable bufferDeviceAddressCaptureReplay") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30431> (cherry picked from commit 7fe3529715c3bbc71560e84ed8e6a54c8d13f9b0) - - - - - 6ffe16a5 by Rob Clark at 2024-08-14T17:58:54+02:00 freedreno/drm/virtio: Fix issues with 16k (or larger) page sizes Signed-off-by: Rob Clark <robdcl...@chromium.org> Fixes: e6b2785811c2 ("freedreno/drm/virtio: Use userspace IOVA allocation") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30431> (cherry picked from commit 87c889cd8af09aa6e05b55f66c8460ae293a3512) - - - - - 327e37aa by Timothy Arceri at 2024-08-14T17:58:55+02:00 nir: set disallow_undef_to_nan for legacy ARB asm programs Reviewed-by: Marek Olšák <marek.ol...@amd.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11389 Fixes: 861d274453c0 ("nir: replace undef only used by ALU opcodes with 0 or NaN") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30419> (cherry picked from commit 298633e3655656d201a0eee7433cb9b6e7687702) - - - - - 807b8b72 by Lionel Landwerlin at 2024-08-14T17:58:57+02:00 anv: fix check on pipeline mode to track buffer writes We want to check the current mode of the pipeline, not the queue type (since graphics can toggle between 3D & gpgpu modes). Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 455a13fb7f ("anv: limit ANV_PIPE_RENDER_TARGET_BUFFER_WRITES to blorp operations using 3D") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11607 Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30469> (cherry picked from commit fafa0d5abb238b5b811720e12dbc86431ee33f9f) - - - - - 568a691e by Hans-Kristian Arntzen at 2024-08-14T17:59:00+02:00 wsi/common: Do not update present mode with MESA_VK_WSI_PRESENT_MODE. Signed-off-by: Hans-Kristian Arntzen <p...@arntzen-software.no> Reviewed-by: Sebastian Wick <sebastian.w...@redhat.com> Fixes: ad71d584cfbe588c54b2 ("wsi/common: Add function to modify present mode.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30434> (cherry picked from commit 369e3cc20ac251e4fd4b1e478365e39c70ca63ea) - - - - - 5f30a8d6 by Eric Engestrom at 2024-08-14T17:59:14+02:00 .pick_status.json: Mark 89863a050bea429d9574a307bc28953bb60accaf as denominated - - - - - 9043fb5d by Mike Blumenkrantz at 2024-08-14T17:59:15+02:00 dri: link with libloader this has always called loader_bind_extensions, so it should have been linking with the loader cc: mesa-stable Reviewed-by: Eric Engestrom <e...@igalia.com> Reported-by: Yurii Kolesnykov <r...@yurikoles.com> Tested-by: Yurii Kolesnykov <r...@yurikoles.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30449> (cherry picked from commit 827812912da9283813c36c09d7f5d61e3e2a4330) - - - - - c86eba67 by Eric Engestrom at 2024-08-14T17:59:16+02:00 .pick_status.json: Mark 93f9afa1e039cbf681adcc6d170aec987d9f0f65 as denominated - - - - - 05f1c0b9 by Karol Herbst at 2024-08-14T17:59:19+02:00 mesa: check for enabled extensions for *UID enums Applications might use them without checking if the extension is supported and would run into a NULL pointer deref calling the callbacks. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455> (cherry picked from commit 740cae64a146f46a21e5ddb624a57c30d0e86053) - - - - - f3195e77 by Karmjit Mahil at 2024-08-14T18:10:28+02:00 tu: Set `TU_ACCESS_CCHE_READ` for transfer ops with read access Transfer ops also use CCHE since they use the same path as texture access. This addresses the flakiness seen in KHR-GL46.shader_storage_buffer_object.advanced-usage-sync-cs CCHE wasn't being invalidated between the compute op and transfer op which would sometimes lead to old/invalid data to be copied in the transfer op. Fixes: fb1c3f7f5de ("tu: Implement CCHE invalidation") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11458 Signed-off-by: Karmjit Mahil <karmjit.ma...@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30490> (cherry picked from commit cf9588bae6abb291786f5eb3975b687d6047574c) - - - - - ca46312b by Mike Blumenkrantz at 2024-08-14T18:10:30+02:00 kopper: check swapchain size after possible loader image resize previously the size was checked at the top of the function, but this ignored cases where the loader might end up resizing the drawable, resulting in an attempted 0x0 swapchain creation based on stale geometry cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30487> (cherry picked from commit a6d97b0afed27a37b0edaed0e6360ae1c7f181e9) - - - - - a5d8f4f9 by Echo J at 2024-08-14T18:10:32+02:00 util: Fix the integer addition in os_time_get_absolute_timeout() This should fix glClientWaitSync() timing out too early with a INT64_MAX timeout on radeonsi Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11615 Fixes: 7316cc92f38 ("gallium/os: add conversion and wait functions for absolute timeouts") Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-pra...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30476> (cherry picked from commit e14d1f5bc0a0579e8a9934c96a6ca22646da06ac) - - - - - 6eecba32 by Karol Herbst at 2024-08-14T18:10:34+02:00 zink: lower 64 bit find_lsb, ufind_msb and bit_count Cc: mesa-stable Acked-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Reviewed-by: Georg Lehmann <dadschoo...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504> (cherry picked from commit 39ec184db6e9d614fd540b89e9cba4e6cb77de50) - - - - - a0291c40 by Karol Herbst at 2024-08-14T18:10:35+02:00 zink: lower 8/16 bit alu ops vk spirv doesn't allow Cc: mesa-stable Acked-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Reviewed-by: Georg Lehmann <dadschoo...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504> (cherry picked from commit b2225b9437b8c1b0d0431f7cbd768ba7dd2f8728) - - - - - 5499c943 by Karol Herbst at 2024-08-14T18:10:37+02:00 rusticl/kernel: properly respect device thread limits per dimension Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30504> (cherry picked from commit b3e925a21ba693fd7423b45405b406bfcb8f088a) - - - - - 53005aea by Marek Olšák at 2024-08-14T18:18:16+02:00 radeonsi: fix buffer coherency issues on gfx6-8,12 due to missing PFP->ME sync This fixes random GPU hangs on gfx12 due to incoherent indirect buffer data, causing random indirect vertex and instance counts, which timeouts if the random numbers are large. Fixes: a8abbbb172ea69453ac5bbb - radeonsi: remove r600_pipe_common.h Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-pra...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30503> (cherry picked from commit 83b88c54bad718127c4db4f1304f4e79145d37a2) - - - - - 9a1327f2 by Mike Blumenkrantz at 2024-08-14T18:18:19+02:00 pipe-loader: fix driconf memory management this had a number of issues: * pipe_loader_get_driinfo_xml() frees driver_driconf immediately, except the driOptionCache struct string pointers are all just copied in merge_driconf instead of having the strings copied, which means any subsequent access of driver_driconf strings is invalid access * pipe_loader_drm_get_driconf_by_name() is a disaster that only happened to work because the dlopen here is the same lib that gets opened elsewhere by mesa and not closed. if the lib here is actually closed, then all the statically allocated strings become invalid, which means they need to be manually copied cc: mesa-stable Reviewed-by: Marek Olšák <marek.ol...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30494> (cherry picked from commit 0c220741e6c6a70250cd822bce7bf408c989194b) - - - - - 576e9ff9 by Lionel Landwerlin at 2024-08-14T18:18:28+02:00 vulkan/runtime: allow null/empty debug names VkDebugUtilsObjectNameInfoEXT::pObjectName can be NULL [1] : "Applications may change the name associated with an object simply by calling vkSetDebugUtilsObjectNameEXT again with a new string. If pObjectName is either NULL or an empty string, then any previously set name is removed." The current code will segfault. [1] : https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap50.html#VkDebugUtilsObjectNameInfoEXT Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 3b361b234a ("vulkan: Implement VK_EXT_debug_utils") Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30516> (cherry picked from commit ae9a249dfeb7d2d0c57f613cd3fee942887ec3fe) - - - - - 71125139 by Lionel Landwerlin at 2024-08-14T18:18:29+02:00 anv: reuse object string for RMV token The current code is not handling the potential NULL pointer in VkDebugUtilsObjectNameInfoEXT::pObjectName Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: e1b9a6e4f3 ("anv: initial RMV support") Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30516> (cherry picked from commit c6bf1f02c4fbdf1d700cfe160e913e79c63944ed) - - - - - c8ce254e by Iván Briano at 2024-08-14T18:18:32+02:00 intel/rt: fix terminateOnFirstHit handling If TraceRay() is called with the TerminateOnFirstHit flag, we need to terminate the ray on the first confirmed intersection. This is handled by the lowering of accept_ray_intersection and it's working fine for the case of multiple instances of the intersection shader being called. But if the shader calls reportIntersection() more than once, we were handling them all and accepting the closest one regardless of the flag. Check for the flag on every confirmed intersection and, if set, accept it right there. The subsequent lowering will take care of terminating handling the ray termination if necessary. Fixes new test dEQP-VK.ray_tracing_pipeline.amber.flags-accept-first Cc: mesa-stable Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30418> (cherry picked from commit f8553f56acdb1abd061a1049d52e5a1937b2b759) - - - - - 39fd67b1 by Timothy Arceri at 2024-08-14T18:20:13+02:00 glsl: fix glsl to nir support for lower precision builtins When we switch to the full nir based glsl linker in an upcomming merge request this is required for existing tests from 8fcf8e7fd401 to continue to pass, this is because they never exercised glsl to nir so the missing support went unnoticed. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11456 Fixes: 8fcf8e7fd401 ("glsl: lower builtins to mediump that ignore precision of certain parameters ") Reviewed-by: Marek Olšák <marek.ol...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30395> (cherry picked from commit 140ca7e5d72323a4685b5043dbac272931b055bb) - - - - - 6af37e6b by Rhys Perry at 2024-08-14T18:20:15+02:00 docs: update ACO_DEBUG documentation for scheduler options Signed-off-by: Rhys Perry <pendingchao...@gmail.com> Reviewed-by: Georg Lehmann <dadschoo...@gmail.com> Fixes: 48461c0d9e6b ("aco: enable VOPD scheduler") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30519> (cherry picked from commit e45035c83acab9ef603b3b9eedbabe253c1daa7b) - - - - - b913fae1 by Lionel Landwerlin at 2024-08-14T18:20:16+02:00 anv: add missing MEDIA_STATE_FLUSH for internal shaders Replicating what we do in genX_cmd_compute.c Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 7ca5c84804 ("anv: add support for simple internal compute shaders") Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30539> (cherry picked from commit 4f093b2e2bc52ea2a3e7aaac64c91d2f12f1c9b8) - - - - - 442b1b53 by Eric Engestrom at 2024-08-14T18:20:18+02:00 ci: pass MESA_SPIRV_LOG_LEVEL from job to the test Fixes: 4b8735cd4e2fd5fca820 ("ci: raise the log level threshold of spirv logs") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30546> (cherry picked from commit b6d8459e3a0b630b5f4365a2df0974381ada82cc) - - - - - d3db644f by Karol Herbst at 2024-08-14T18:24:33+02:00 rusticl/memory: Fix memory unmaps after rework An application could map and unmap a host ptr allocation multiple times, but because how the refcounting works, we might never ended up syncing the written data to the mapped region. This moves the refcounting out of the event processing. Fixes: 7b22bc617bf ("rusticl/memory: complete rework on how mapping is implemented") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30528> (cherry picked from commit 1fa288b224efe6a41d056dc08b3cb783e4f8f841) - - - - - 2fef7976 by Karol Herbst at 2024-08-14T18:24:53+02:00 rusticl/image: take pitches into account when allocating memory for maps This is more correct than the previous code and the CL CTS relies on edge case behavior here, e.g. for 1Dbuffer images. I think part of that is not actually required by the spec, but whatever. Fixes: 7b22bc617bf ("rusticl/memory: complete rework on how mapping is implemented") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30528> (cherry picked from commit 2484331e8282146a89f371a69b3f91f81cb882ed) - - - - - 0f15e9ec by Karol Herbst at 2024-08-14T18:26:17+02:00 rusticl/image: properly sync mappings content for 1Dbuffer images This fixes clFillImage 1Dbuffer use_pitches CL CTS tests. Fixes: 7b22bc617bf ("rusticl/memory: complete rework on how mapping is implemented") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30528> (cherry picked from commit 012323a1d196b89cdc289270a16b3f3d0df49379) - - - - - 79283b3d by Sil Vilerino at 2024-08-14T18:26:18+02:00 Revert "d3d12: Video Encode - Remove PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE as not supported" This reverts commit d6bb4ddc638f3ee37fbbe066c631dad80aaeb2d3. Fixes: d6bb4ddc638 ("d3d12: Video Encode - Remove PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE as not supported") PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE is necessary for some scenarios like the example below described in https://github.com/microsoft/WSL/issues/11838 gst-launch-1.0 -v videotestsrc num-buffers=250 ! video/x-raw,width=1920,height=1200 ! vaapipostproc ! vaapih264enc ! filesink location=~/wsl_test.h264 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30548> (cherry picked from commit a0f1a708c4f3abb055734d35fb3b35b3db15210b) - - - - - a7b15128 by Eric R. Smith at 2024-08-14T18:26:22+02:00 panfrost: use RGB1 component ordering for R5G6B5 pixel formats For some purposes (e.g. advanced blending) we need a non-zero alpha value returned from reads. This is only guaranteed on Bifrost if we explicitly request RGB1 component ordering. The default is to use RGBA component ordering, which for R5G6B5 causes 0 to be read for alpha. A complication is that the Mali fixed function hardware requires four components (which implies RGBA rather than RGB1). If fixed function blending is in use, we modify the pixel format back to RGBA when building the blend descriptor. Cc: mesa-stable Reviewed-by: Boris Brezillon <boris.brezil...@collabora.com> Reviewed-by: Mary Guillemard <mary.guillem...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29606> (cherry picked from commit 004e0eb3ab854957bdb798142678765360b7104b) - - - - - 34467ad0 by Lionel Landwerlin at 2024-08-14T18:26:23+02:00 anv/blorp: force CC_VIEWPORT reallocation when programming 3DSTATE_VIEWPORT_STATE_POINTERS_CC Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11647 Fixes: fe1baa6481 ("anv: reduce blorp dynamic state emissions") Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30532> (cherry picked from commit 10533e7b4cbbaca7c01a7e9a59ff4c20173710f6) - - - - - a891ed8d by Karol Herbst at 2024-08-14T18:28:45+02:00 rusticl/queue: add clSetCommandQueueProperty The CL CTS started to call this API, luckily we don't have to actually implement it, because we don't intent to support CL 1.0 only devices in the first place (probably). Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30575> (cherry picked from commit cd2dc4f70c35b6981789b02c32a9f1d71562638c) - - - - - 07c99c55 by Tapani Pälli at 2024-08-14T18:29:37+02:00 anv: fix a cmd_buffer reference in simple shader In utrace timestamp copy case cmd_buffer is NULL. Fixes: dbbcd5c32c ("anv: factor out generation kernel dispatch into helper") Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30475> (cherry picked from commit ff8953f66621329d8c2eaaf4cfa5e51d7f8dcd80) - - - - - 262e3b3b by Mike Blumenkrantz at 2024-08-14T18:34:14+02:00 egl: fix zink init * close(fd) requires also resetting the fd=-1 or else boom * checking just driver_name is broken because loader_get_driver_for_fd() uses MESA_LOADER_DRIVER_OVERRIDE, so there's no way to differentiate an inferred load Fixes: b907eb47504 ("egl: don't bind zink under dri2/3") Acked-by: Dave Airlie <airl...@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30556> (cherry picked from commit 1a579552afb86a56e0923cd739e2fcdb063039aa) - - - - - f3f0b87b by Mike Blumenkrantz at 2024-08-14T18:34:31+02:00 dri: fix kms_swrast screen fail this should match all the other screen init functions cc: mesa-stable Reviewed-by: Marek Olšák <marek.ol...@amd.com> Reviewed-by: Adam Jackson <a...@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30524> (cherry picked from commit d6ac254c0152cbb760ee87e8243c78f87503f805) - - - - - ff7759cd by Georg Lehmann at 2024-08-14T18:34:33+02:00 nir/lower_int64: replace uadd_sat with ior for find_lsb64 and ufind_msb64 Using ior here is equivalent to using uadd_sat, but works for every driver and shouldn't hurt anywhere. I forgot to fix this up when fixing up some vvl errors with zink. Fixes crashes with the integer_ctz CL CTS tests in zink. Fixes: 39ec184db6e ("zink: lower 64 bit find_lsb, ufind_msb and bit_count") Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30535> (cherry picked from commit 48acf9d3583cf5fc1c4036a14e21e27df2f8bb86) - - - - - fee95230 by Faith Ekstrand at 2024-08-14T18:41:53+02:00 nvk: Require color or depth/stencil attachment support for input attachments Fixes: 20d8d1e239be ("nvk: Add a more competent GetPhysicalDeviceImageFormatProperties") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30580> (cherry picked from commit 08f6066e87a461444f347bef56e5e56225e5c2c3) - - - - - 4a0304c5 by Faith Ekstrand at 2024-08-14T18:41:53+02:00 nvk: Support STORAGE_READ_WITHOUT_FORMAT on buffers Fixes: fc191730145e ("nvk: Rework format features queries") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30580> (cherry picked from commit 8244b87822e7f9b744eee9ff77078cb77c1ab6cc) - - - - - 23383aa4 by Faith Ekstrand at 2024-08-14T18:41:53+02:00 zink: Align descriptor buffers to descriptorBufferOffsetAlignment Instead of aligning offsets, we just align the size every time we query it. This simplifies our offset and size calculations later since we can always just add up descriptor buffer sizes and know that we'll be okay. Acked-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Fixes: 7ab5c5d36d2b ("zink: use EXT_descriptor_buffer with ZINK_DESCRIPTORS=db") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30580> (cherry picked from commit 0f8f407e572734462fb2d2ea17296b747f67446c) - - - - - 5c903880 by David Heidelberg at 2024-08-14T18:41:54+02:00 llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit (cont) Fixes: ce611935df5e ("llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit.") Signed-off-by: David Heidelberg <da...@ixit.cz> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30482> (cherry picked from commit 9c8e75e2564fd29e351d973d517c0d3a93998dcc) - - - - - 946f5692 by Timothy Arceri at 2024-08-14T18:41:54+02:00 glsl: always copy bindless sampler packing constructors to a temp Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11648 Fixes: 3cdcc5f02f39 ("glsl: implement ARB_bindless_texture conversions") Reviewed-by: Marek Olšák <marek.ol...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30586> (cherry picked from commit 3da4b5eaa51ea74a4e3e1309a75308a9586189a6) - - - - - ac1ff018 by Georg Lehmann at 2024-08-14T18:41:54+02:00 aco/gfx10+: set lateKill for sgprs used by wave64 VALU writing a mask RDNA2 ISA doc, 6.2.4. Wave64 Destination Restrictions: The first pass of a wave64 VALU instruction may not overwrite a scalar value used by the second half. Foz-DB Navi31: Totals from 5221 (6.58% of 79395) affected shaders: Instrs: 9751484 -> 9752179 (+0.01%); split: -0.01%, +0.01% CodeSize: 50624072 -> 50626088 (+0.00%); split: -0.00%, +0.01% Latency: 85646450 -> 85647419 (+0.00%); split: -0.00%, +0.00% InvThroughput: 15039160 -> 15039277 (+0.00%); split: -0.00%, +0.00% VClause: 200275 -> 200204 (-0.04%) SClause: 248645 -> 248607 (-0.02%); split: -0.03%, +0.01% Copies: 640802 -> 641413 (+0.10%); split: -0.01%, +0.11% PreSGPRs: 236297 -> 236735 (+0.19%) VALU: 5666449 -> 5666440 (-0.00%) SALU: 967482 -> 968111 (+0.07%); split: -0.01%, +0.07% Cc: mesa-stable Reviewed-by: Rhys Perry <pendingchao...@gmail.com> Reviewed-by: Daniel Schürmann <dan...@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30368> (cherry picked from commit 510f5e55be05e8d6061cda2f53d16abc6a35be55) - - - - - 86c2d6ba by Eric Engestrom at 2024-08-14T18:42:05+02:00 .pick_status.json: Mark 34753cefd828f5db8e9e14cee9c4e45cee5baaaa as denominated - - - - - 5168d629 by Mike Blumenkrantz at 2024-08-14T18:42:10+02:00 egl/wayland: bail on zink init in non-sw mode if extension check fails cc: mesa-stable Acked-by: Daniel Stone <dani...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30479> (cherry picked from commit d120992e1a16e046ee189691f721e636c35c783b) - - - - - ccde34b7 by Valentine Burley at 2024-08-14T18:45:42+02:00 vulkan/wsi: Refactor can_present_on_device Make wsi_device_matches_drm_fd() a default helper that PCI based GPUs plug in to wsi_dev->can_present_on_device. This is needed for devices without libdrm, where wsi_device_matches_drm_fd was still being called causing an "undefined reference" build error. Suggested-by: Rob Clark <robdcl...@chromium.org> Fixes: baa38c144f6 ("vulkan/wsi: Use VK_EXT_pci_bus_info for DRM fd matching") Reviewed-by: Mark Collins <m...@igalia.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Signed-off-by: Valentine Burley <valentine.bur...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29627> (cherry picked from commit 47289ebc8d815bac2cf0cbb1515972c94d3cee2b) - - - - - 4af40c1d by Valentine Burley at 2024-08-14T18:45:44+02:00 tu: Always report that we can present on kgsl Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8637 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9240 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9365 Fixes: 3e7f6c9aebf ("tu: implement wsi hook to decide if we can present directly on device") Signed-off-by: Valentine Burley <valentine.bur...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29627> (cherry picked from commit 367191ff632e00b1822c53ecead8c48e18b73535) - - - - - 6fca3cd0 by Karol Herbst at 2024-08-14T18:45:47+02:00 util/u_printf: do not double print format string with unused arugments the CL CTS added a new test being printf("\n", "foo"), but we ended up printing the new line twice. If we can't find a specifier anymore, ignore the argument as after the loop processing all arguments we'll print the remaining format string anyway. Cc: mesa-stable Reviewed-by: Jesse Natalie <jenat...@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30574> (cherry picked from commit 408026984551665562ce95260b92fd7db7f49c71) - - - - - 34b11023 by Pavel Ondračka at 2024-08-14T18:45:50+02:00 r300: bias presubtract fix We need to double check that the source is indeed constant before looking at the constant type. Signed-off-by: Pavel Ondračka <pavel.ondra...@gmail.com> Fixes: 0508db91556242c57029ad538613c2b1ee1969ef Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29893> (cherry picked from commit 1cad339409d437ba1170725f7575b016c7c896e7) - - - - - 2fcae878 by Karol Herbst at 2024-08-14T18:45:51+02:00 rusticl/memory: fix sampler argument size check Not entirely sure why this hasn't caused any problems... Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30602> (cherry picked from commit 0cfcd2ff83acb8733f3fb0da56b5764fc268feec) - - - - - 2521bf24 by Lionel Landwerlin at 2024-08-14T18:45:52+02:00 brw/rt: fix ray_object_(direction|origin) for closest-hit shaders When closest hit shader is called, the BVH object level brw_nir_rt_load_mem_ray origin/direction is 0. What we should be using is the ray origin/direction and apply the transform of the current instance. Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Fixes: 9ba7d459a3 ("intel/rt: Implement the new ray-tracing system values") Reviewed-by: Sagar Ghuge <sagar.gh...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30578> (cherry picked from commit aaff19135644049cde3bd3ddd649b48f96111fa4) - - - - - fdfe33d6 by Mike Blumenkrantz at 2024-08-14T18:45:54+02:00 zink: fix partial update handling * the damage region was not being used correctly (this is a normal rect) * use_damage was never unset at frame boundary * original renderArea was never re-set Fixes: 3d38c9597ff ("zink: hook up KHR_partial_update") Acked-by: Daniel Stone <dani...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30625> (cherry picked from commit a7f64c62037eb33e97e0d4a0f9a27345baa8bcc3) - - - - - 5f2c486c by Matt Turner at 2024-08-14T18:53:12+02:00 util: Add ATTRIBUTE_OPTIMIZE(flags) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30622> (cherry picked from commit b3430a7bb8b49cb5a4e0cdb1e690f53025d80069) - - - - - d2da512f by Matt Turner at 2024-08-14T18:53:12+02:00 util: Force emission of stack frame in stack unit test The `capture_not_overwritten` unit test captures and compares two backtraces -- one from inside a call to `func_c` and one outside -- and confirms that they are not identical. That is, that `func_c` is in the backtrace. On 32-bit x86, without `-fno-omit-frame-pointer`, the function will not emit a stack frame. As a result, the unit test fails. The fix is to compile `func_c` with the flag `-fno-omit-frame-pointer` to prevent the compiler from optimizing out the stack frame which is otherwise unneeded. Bug: https://bugs.gentoo.org/823774 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4091 Fixes: d0d14f3f648 ("util: Add unit test for stack backtrace caputure") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30622> (cherry picked from commit 05dc4eb536d0b527c4d0e6dcea177ff318974cae) - - - - - 5a16eefb by Hans-Kristian Arntzen at 2024-08-14T18:53:12+02:00 wsi/x11: Bump maximum number of outstanding COMPLETE events. Fixes a "regression" where comically large FPS tests regressed. Signed-off-by: Hans-Kristian Arntzen <p...@arntzen-software.no> Fixes: 19dba854 ("wsi/x11: Rewrite implementation to always use threads.") Reviewed-By: Mike Blumenkrantz <michael.blumenkra...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30638> (cherry picked from commit 5a97916fdce788ac707df94d6b3b145a377482ac) - - - - - 24d0e7ee by WANG Xuerui at 2024-08-14T18:53:12+02:00 meson: Additionally probe -mtls-dialect=desc for TLSDESC support Previously only `-mtls-dialect=gnu2` was probed, which was appropriate for arm, x86 and x86_64, but not for newer architectures such as aarch64, loongarch64 and riscv64 which all use `-mtls-dialect=desc` instead. Because the driver option is not consistent across architectures (and probably will not), try both variants and choose the first one working. While at it, rename "gnu2_*" variables to "tlsdesc_*" respectively, for clarity. Cc: mesa-stable Reviewed-by: Icenowy Zheng <u...@icenowy.me> Reviewed-by: Yukari Chiba <i...@0x7f.cc> Reviewed-by: David Heidelberg <da...@ixit.cz> Signed-off-by: WANG Xuerui <g...@xen0n.name> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30599> (cherry picked from commit cc2dbb8ea5329b509d79eedb6c0cbb9a1903b5ad) - - - - - 3f03c3e9 by Eric Engestrom at 2024-08-14T19:31:08+02:00 docs: add release notes for 24.1.6 - - - - - 44c29683 by Eric Engestrom at 2024-08-14T19:31:33+02:00 VERSION: bump for 24.1.6 - - - - - 38bad788 by Timo Aaltonen at 2024-08-14T21:59:56+03:00 Merge branch 'upstream-unstable' into debian-unstable - - - - - b0a4c7c0 by Timo Aaltonen at 2024-08-14T22:01:09+03:00 version bump - - - - - a30263c1 by Timo Aaltonen at 2024-08-14T22:05:00+03:00 releasing package mesa version 24.1.6-1 - - - - - 30 changed files: - .gitlab-ci/common/generate-env.sh - .pick_status.json - VERSION - debian/changelog - docs/envvars.rst - docs/relnotes.rst - docs/relnotes/24.1.5.rst - + docs/relnotes/24.1.6.rst - meson.build - src/amd/compiler/aco_live_var_analysis.cpp - src/amd/compiler/aco_print_ir.cpp - src/compiler/glsl/ast_function.cpp - src/compiler/glsl/glsl_to_nir.cpp - src/compiler/nir/nir_lower_int64.c - src/compiler/nir/nir_opt_algebraic.py - src/compiler/nir/nir_opt_undef.c - src/egl/drivers/dri2/platform_wayland.c - src/egl/drivers/dri2/platform_x11.c - src/egl/drivers/dri2/platform_x11_dri3.c - src/egl/drivers/dri2/platform_x11_dri3.h - src/freedreno/drm/freedreno_bo_cache.c - src/freedreno/drm/freedreno_device.c - src/freedreno/drm/freedreno_priv.h - src/freedreno/drm/freedreno_ringbuffer_sp.c - src/freedreno/drm/msm/msm_device.c - src/freedreno/drm/virtio/virtio_priv.h - src/freedreno/vulkan/tu_cmd_buffer.cc - src/freedreno/vulkan/tu_device.cc - src/freedreno/vulkan/tu_device.h - src/freedreno/vulkan/tu_knl_drm.cc The diff was not included because it is too large. View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/0b7b838df35a94a0df642ac5b9d58292c02fab07...a30263c1bf109edef5c36058d4637366f8007dce -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/0b7b838df35a94a0df642ac5b9d58292c02fab07...a30263c1bf109edef5c36058d4637366f8007dce You're receiving this email because of your account on salsa.debian.org.