Timo Aaltonen pushed to branch upstream-experimental at X Strike Force / lib / mesa
Commits: a8650e97 by Dylan Baker at 2020-12-03T10:22:55-08:00 docs: Add sha256 sums for 20.3.0 - - - - - 9465b0eb by Dylan Baker at 2020-12-03T10:35:11-08:00 .pick_status.json: Update to 872c4bcd27db7b7ca26abe9fc090ae26d502156f - - - - - ec22eb7e by Dylan Baker at 2020-12-03T10:42:52-08:00 .pick_status.json: Mark a5e0a2e101bcda0132185a82c3e8c9b4c90ce94c as denominated - - - - - 03802858 by Dylan Baker at 2020-12-04T11:11:09-08:00 .pick_status.json: Update to 72b68bd2a62d193e26bd6b31123182d7dbae3098 - - - - - bd95f95d by Marcin Ślusarz at 2020-12-04T11:11:11-08:00 iris: store copy of the border color in the border color hash table Color can be allocated on the stack since 809a81ec3a0. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3909 Fixes: 809a81ec3a0 ("iris: Properly support alpha and luminance-alpha formats") Debugged-by: Filip Strömbäck Signed-off-by: Marcin Ślusarz <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7885> (cherry picked from commit 90515f90c8523bbf637a4dfdbce959adc45b4834) - - - - - 13e7057e by Rhys Perry at 2020-12-04T11:11:12-08:00 aco: don't assume src=lower when splitting self-intersecting copies Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Fixes: 09c584caeb2 ("aco: split self-intersecting copies instead of swapping") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7798> (cherry picked from commit 2c40846ab6f8bf161dc79ed99b51702055c6d538) - - - - - 03e8cc7c by Dylan Baker at 2020-12-07T09:17:49-08:00 .pick_status.json: Update to ec3828add38a83b8c09fd5896265abc9d766162e - - - - - dfadf838 by Vinson Lee at 2020-12-07T09:17:50-08:00 meson: Fix Clang microsoft-enum-value detection. Fixes: 3aee462781a ("meson: add windows compiler checks and libraries") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7543> (cherry picked from commit bb46a010bbe9f703ff9d48e450dbd6529906b8e9) - - - - - 44bed805 by Dave Airlie at 2020-12-07T09:19:19-08:00 radeonsi: fix regression on gpus using the radeon winsys. For GPUs using the radeon kernel driver, num_se was never getting initialised. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3939 Fixes: f2977a162af4 ("ac: fix min/max_good_num_cu_per_sa on gfx10.3 with disabled SEs") Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7954> (cherry picked from commit 7c075bae56e45f268e62efcd82589111bce92ae3) - - - - - 33c28836 by Samuel Pitoiset at 2020-12-07T09:19:20-08:00 radv: mark GFX10.3 as a non-conformant Vulkan implementation In theory, GFX10.3 is not considered to be a conformant Vulkan implementation because we didn't submit a conformance submission package. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7913> (cherry picked from commit 5cacb56041d1acbbff162509d0635ba465b80df6) - - - - - b3bfb017 by Samuel Pitoiset at 2020-12-07T09:19:21-08:00 radv: fix exporting multiviews with NGG If a subpass uses multiview but the fragment shader doesn't load it we still have to export it. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7815> (cherry picked from commit fadcf13c8bad5bc07e7fffaca7197adda66b4bd7) - - - - - 0cde1420 by Michel Dänzer at 2020-12-07T09:20:39-08:00 ci: Drop x86_build_old image Currently not used for anything. v2: * Drop build script as well (Eric Anholt) Fixes: a3543adc2628 "clover: set LLVM min version to 8.0.1" Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7902> (cherry picked from commit 42bc6db7e71c348594277af58975467c54eb2b19) - - - - - d77d3cae by Dylan Baker at 2020-12-08T09:46:54-08:00 .pick_status.json: Update to f93b7d14d66d8ba70d44772d1a1b6696310b7d17 - - - - - 17ef9b55 by Erik Faye-Lund at 2020-12-08T09:46:54-08:00 gallium: do not reset buffers for unsupported stages There's no good reason why drivers that doesn't grok geometry, tesselation or compute shaders needs to deal with them. This fixes a crash on a lot of Piglit tests for Zink. Fixes: daaf5f1d186 ("gallium: Fix leak of currently bound UBOs at CSO context destruction.") Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7971> (cherry picked from commit 3abac03d49b5dc4a6642fe0637da5a19ad60dd4f) - - - - - c5ffe9e0 by Erik Faye-Lund at 2020-12-08T09:46:56-08:00 zink: fix channel ordering in format-mapping This looks like a typo. Packed vulkan formats should always map to the inverse order of the corresponding gallium notation. Besides, it makes no sense that unsigned and signed formats have different ordering. Fixes: cdfb1d925f3 ("zink: add last few format maps for ARB_vertex_type_2_10_10_10_rev") Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7964> (cherry picked from commit 8bb4a76addd0f0a48585ba9a4a30d6bbc5acec80) - - - - - ee83c989 by Witold Baryluk at 2020-12-08T09:46:56-08:00 zink: Cap PIPE_SHADER_CAP_MAX_CONST_BUFFERS to 32 PIPE_MAX_CONSTANT_BUFFERS is 32, however many Vulkan implementations has maxPerStageDescriptorUniformBuffers that exceeds it, for example: radv 8388606, anv 64 nvidia 1048580 for RTX 2000 and up. and, together with the current zink logic, the returned value will exceed the maximum allowed value for the cap. This causes cso_destroy_context to pass big values back to zink (via zink_set_constant_buffer), resulting in access beyond end of allocated buffer for all UBOs. Cap the cap to PIPE_MAX_CONSTANT_BUFFERS (32), not INT_MAX. Add an assert to verify future drivers. Reviewed-by: Erik Faye-Lund <[email protected]> Fixes: daaf5f1d186 ("gallium: Fix leak of currently bound UBOs at CSO context destruction.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7976> (cherry picked from commit e2b4247e403957ebd9767b2e8700442306c7e7c6) - - - - - 0c2b29e3 by Samuel Pitoiset at 2020-12-08T09:46:58-08:00 radv: disable alphaToOne feature The feature was exposed but completely ignored by the driver. Other AMD drivers don't expose it as well, probably because it's complicated to implement alpha-to-coverage properly. Let's disable it. Cc: mesa-stable. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7966> (cherry picked from commit 59b1578176a786e3c226c0b2b53fed378812288e) - - - - - 1c83ec97 by Jonathan Gray at 2020-12-08T09:46:59-08:00 aco: use UINT64_C on 64 bit constant arguments avoids errors seen when building on OpenBSD/amd64 ../src/amd/compiler/aco_instruction_selection.cpp:1677:62: error: ambiguous conversion for functional-style cast from 'unsigned long' to 'aco::Operand' bld.vop3(aco_opcode::v_mul_f64, Definition(dst), Operand(0x3FF0000000000000lu), tmp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ glibc uses unsigned long for uint64_t on LP64 archs and unsigned long long for uint64_t on ILP32 archs. On OpenBSD unsigned long long is used for uint64_t on all archs. The Operand constructors are uint8_t uint16_t uint32_t uint64_t use UINT64_C so lu or llu suffix will be used as needed. Fixes: df645fa369d ("aco: implement VK_KHR_shader_float_controls") Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Tony Wasserka <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7944> (cherry picked from commit ebfb9e181737e7ff7be638134410b919145a0f95) - - - - - a8d5e575 by yshi18 at 2020-12-08T09:47:00-08:00 iris: fix memleak for query_buffer_uploader In the Chrome WebGL Aquarium stress test, 20 instances of Chrome will run Aquarium simultaneously over 20+ hours. That causes Chrome crash. During the stress, glBeginQueryIndexed is called frequently. 1.Each query will only use 32 bytes from query_buffer_uploader. After the offset exceed 4096, it will alloc new buffer for query_buffer_uploader->buffer and release the old buffer. 2.But iris_begin_query will call u_upload_alloc when the offset changed, and it will increase the query_buffer_uploader->buffer->reference.count every time when it called u_upload_alloc. 3.So when u_upload_release_buffer try to release the resource of query_buffer_uploader->buffer, its reference.count is already equal to 129. pipe_reference_described will only decrease its reference count to 128.So it never called old_dst->screen->resource_destroy. 4.The old resouce bo will never be freeed. And chrome will called mmap every time when it alloc new resource bo. 5. Chrome process map too many vmas in its process. Its map count exceed the sysctl_max_map_count which is 65530 defined in kernel. 6. When iris_begin_query want to alloc new resource bo, it will meet NULL pointer because mmap return failed. Finally chrome crashed when it access this NULL resource bo. The fix is decrease the reference count in iris_destroy_query. Patch is verified by chrome webgl Aquarium test case for more than 72 hours. Signed-off-by: Tapani Pälli <[email protected]> Signed-off-by: Yang Shi <[email protected]> Reviewed-by: Alex Zuo <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7890> (cherry picked from commit 3aaac40b12bf683cb30ea30e35af02d56de9df90) - - - - - 51e8c7ec by Dylan Baker at 2020-12-09T19:09:55-08:00 .pick_status.json: Update to 3f0da800eb4b8184c24707c52d5a519abe948898 - - - - - 4c32042d by Jonathan Marek at 2020-12-09T19:14:08-08:00 turnip: always emit LRZ draw state in DIRTY_DRAW_STATE path The packet size is constant and assumes all states, except for the 2 input attachment states. (this means we get an invalid packet if DIRTY_LRZ isn't set when DIRTY_DRAW_STATE is set). Fixes: 3c07a1499863 ("turnip: enable LRZ") Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commit af6e74bca86823be63907ec91549ff9f8e88f6fb) - - - - - e9407a0a by Jonathan Marek at 2020-12-09T19:14:09-08:00 turnip: move up LRZ invalidate in CmdClearAttachments There is an early return if cmd->state.predication_active is true, so do the LRZ invalidate before that. Fixes: 2f79e0066405 ("turnip: disable LRZ on vkCmdClearAttachments()") Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commit f24358e002de645388852dd85aee4b9b0d3d7652) - - - - - b9dbeb59 by Jonathan Marek at 2020-12-09T19:14:10-08:00 turnip: always set LRZ registers to zero for 3d clear/blit Apparently LRZ will be read/written regardless of depth being enabled or not, so we have to make sure these registers are zero. Fixes: 1d83f5ae8435 ("turnip: disable LRZ on vkCmdClearattachments() 3D fallback path") Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commit fa16e66a3f4bf6f7eaef82c1770239be9dd824da) - - - - - c20c50e6 by Mauro Rossi at 2020-12-09T19:14:10-08:00 android: spirv: fix '::' typo in gen rules among all Android gen rules '::' was used only here to declare dependencies; mesa development and stable branch are worth receiving the fix Fixes the following building errors with Android 7: obj/STATIC_LIBRARIES/libmesa_nir_intermediates/spirv/gl_spirv.P:184: *** target file gen/STATIC_LIBRARIES/libmesa_nir_intermediates/spirv/vtn_generator_ids.h' has both : and :: entries. Stop. Cc: "20.3" <[email protected]> Fixes: 1070bba19e26 ("android: fix SPIR-V -> NIR build") Reported-by: youling257 <[email protected]> (cherry picked from commit 185df8ef07f92ae3e89b3aec912cc5259904ab50) - - - - - c8655229 by Andrii Simiklit at 2020-12-09T19:14:11-08:00 iris: update depth value for stages after fast clear depth This should fix an outdated depth value visible from the shader side. v1: (Nanley Chery) - fix commit message v2: (Nanley Chery) - replace `fixes` tag by `mesa-stable` Closes: #3883 Cc: 20.3 20.2 <mesa-stable> Reviewed-by: Nanley Chery <[email protected]> Signed-off-by: Andrii Simiklit <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7838> (cherry picked from commit bdd09066fa5f022daa0428325a04a52d66b5e41b) - - - - - 93ac6a93 by Boris Brezillon at 2020-12-09T19:14:12-08:00 panfrost: Make sure we always add a reader -> write dependency when needed We shouldn't reset the ->writer field when a reader comes in because we want subsequent readers to have a dependency on the writer too. Let's add a new field encoding the last access type and use it to replace the writer != NULL test. Reported-by: Roman Elshin Fixes: c6ebff3ecdde ("panfrost: Remove panfrost_bo_access type") Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7831> (cherry picked from commit 387221e4f2b9339633f84d8b91774ddd302ed60a) - - - - - 4e05bd1d by Boris Brezillon at 2020-12-09T19:15:47-08:00 panfrost: Fix fencing Commit 64d6f56ad26f ("panfrost: Allocate syncobjs in panfrost_flush") aimed at optimizing the fencing logic but it looks it also broke the fence-based synchronization in subtle ways. Indeed, now that the fence only waits on a single syncobj, we're not guaranteed that all jobs queued in panfrost_flush_all_batches() will be done when the fence is signaled, because jobs at the top level (those stored in the batches hashmap) have not inter-dependencies. Commit 9e397956b092 ("panfrost: signal syncobj if nothing is going to be flushed") made this even more apparent by signaling the fence right away if nothing was left to be drawn in the current context, thus ignoring any of the batches left to flushed in the ->batches map. If we want to keep relying the existing kernel APIs there's clearly no ideal solution here. We can either go back to the original fencing mechanism where each fence contained an array of syncobjs to be tested or serialize jobs that have no explicit dependencies so we know the last submitted job will also be the last one to return. The orginal approach has proven to add quite a significant overhead (caused by the amount of ioctls and the time spent in kernel space to gather dma fences attached to those syncobjs and test them). So let's go for the simple solution where we have a single syncobj bound to the context which we update to point to the last job out_sync every time we submit a top-level job. This approach implies reworking the way we create fences since we need to capture the syncobj state at the time the fence is created. Unfortunately, there's not SYNCOBJ_CLONE ioctl, which forces us to export/create/import a fence so we have a new object that's not subject to changes done to the context syncobj. If we want to further optimize the logic, we should probably explore some of those options: 1/ Adding array based SYNCOBJ ioctls (SYNCOBJ_{CREATE,DESTROY,CLONE}_ARRAY) so we can mitigate the cost of ioctls when we need to manipulate arrays of syncobjs 2/ Support synchronization jobs. That is, jobs that have a NULL job chain but an array of sync_in and a sync_out to allow creating synchronization points 3/ Add syncobj aggregators so we only have to wait on one syncobj from userspace. The syncobj aggregator would wait for all sub syncobjs to be signaled before signaling the top-level one. Fixes: 64d6f56ad26f ("panfrost: Allocate syncobjs in panfrost_flush") Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7831> (cherry picked from commit 29f938a0ece889cd3236fca7e008bf0031de4be2) - - - - - 7f485f1e by Eric Anholt at 2020-12-09T19:15:48-08:00 softpipe: Fix swizzled texture gather of int textures. We need to pick 1u vs 1.0f based on the type of the texture, just like for normal samples. Move the decision up to the create_sampler_view, and use that value from both sampler paths. Cc: mesa-stable Reviewed-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8012> (cherry picked from commit 4ba884b8140fc64d433959cbe9ef46fa12f4fd07) - - - - - 5d24ae64 by Nanley Chery at 2020-12-09T19:15:48-08:00 iris: Fix resource ptr in resolve_sampler_views Use the sampler view's iris_resource instead of its pipe_resource. For stencil views of a depth-stencil resource, this enables the stencil resource to cause a depth cache flush when needed. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3287 Reviewed-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7996> (cherry picked from commit 1f7427f97216ce63308e810c79b0280a69ef43fc) - - - - - 18fd2554 by Jonathan Marek at 2020-12-10T12:43:01-08:00 turnip: no linear_to_srgb for alpha channel for gmem clear value packing Alpha channel is always linear (oops). Fixes: ddac5933f8f3 ("turnip: call packing functions directly for pack_gmem_clear_value") Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commit d7ea266e6f5cdcde5dd880839a057afaa560e97e) Conflicts: .gitlab-ci/deqp-freedreno-a630-fails.txt - - - - - e0d212c8 by Dylan Baker at 2020-12-10T12:43:08-08:00 .pick_status.json: Update to cf3fc79cd0ab55776bbbabe76237c272ab07133e - - - - - c763926c by Tapani Pälli at 2020-12-10T12:43:08-08:00 anv: fix calculation of buffer size in case dynamic size is used VK spec got clarification about the pSizes parameter. Fixes set of new tests: dEQP-VK.pipeline.extended_dynamic_state*with_offset* v2: move offset subtract to be part of size calculation (Jason) CC: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3871 Fixes: b9a05447a19 ("anv: dynamic vertex input binding stride and size support") Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7439> (cherry picked from commit 5998a6543a6f3116b6c77ace4f9bcde382e90138) - - - - - 4691bc5d by Michel Dänzer at 2020-12-10T12:43:08-08:00 ci: .lava-test:amd64 template needs arm_build It uses the arm_build image, but didn't depend on the job which ensures it exists. So jobs using the template could run before the arm_build job had finished, and fail if the image didn't exist. Fixes: 6c8b921572a5 "ci: Build kernels and rootfs for x86 devices" Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3632 Reviewed-by: Andres Gomez <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8003> (cherry picked from commit 5d073b5aa160adfe4c5e0b388bd199741f4893d8) - - - - - bd01bc1f by Pierre-Eric Pelloux-Prayer at 2020-12-10T12:43:08-08:00 radeonsi: fix si_get_draw_start_count count value Fixes: 0ce68852c1a ("radeonsi: implement multi_draw but supporting only 1 draw") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3932 Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8004> (cherry picked from commit 5eda9673b2347aa33713790b3a04b8363862db2f) - - - - - bd7ccbf2 by Erik Faye-Lund at 2020-12-10T12:43:08-08:00 zink: fail if set failed to create Fixes: a03d17ede77 ("zink: refcount zink_gfx_program objects") Acked-by: Adam Jackson <[email protected]> Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7985> (cherry picked from commit 8a30ac49ac72275d4b123807fceb175658203f95) - - - - - 67a3b8ec by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 aco: fix combining max(-min(a, b), c) if a or b uses the neg modifier No fossils-db changes. Cc: 20.2, 20.3 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> (cherry picked from commit 0fcd379184d658285f3313c5c4026253e0ec6930) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 2ae37315 by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 radv: ignore other blend targets if dual-source blending is enabled Using more blend targets than specified by maxFragmentDualSrcAttachments is invalid per the Vulkan spec. I'm usually not a fan to workaround game bugs inside the driver but it's really easy for us to ignore MRT1+ in the driver and that prevents wrong behaviour. Cc: 20.2, 20.3 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit bc7f442d8e03919cf7f8e6a470b3c0406e11a1f9) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 7b1ee981 by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 radv: disable SQTT support for unsupported GPUs Like GFX10.3 which is currently broken. Cc: 20.2 20.3 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit b589df98622c811b397e6579358b2a51cff8a5ac) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 317526ec by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 radv: don't count unusable vertices to the NGG LDS size Ported from RadeonSI. To get optimal LDS usage since the previous change. Cc: 20.2 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit f777d00a756d72cc01571ca94efa8afa3784fd4e) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 7bf1fbea by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 radv: fix applying the NGG minimum vertex count requirement Ported from RadeonSI. The restriction was applied too late. Cc: 20.2 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit c5e8f6700bf4c50cd273ed2f6c476c66557ccc37) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 4631f384 by Samuel Pitoiset at 2020-12-10T23:10:11+00:00 radv: do VGT_FLUSH when switching NGG -> legacy on Sienna Cichlid Ported from RadeonSI. Cc: 20.2 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit 0790105f2f0d1813dc2ecaf5e12e7131730a8bc1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014> - - - - - 18d5fe46 by Dylan Baker at 2020-12-11T09:41:25-08:00 .pick_status.json: Update to 84c8a35aa2ca4d4de66192933735094ed07b4aaa - - - - - ac1145f7 by cheyang at 2020-12-11T09:41:40-08:00 android: fix build failure with libbacktrace because 848e7b94 commit cause.it modify u_debug_stack_android.cpp location from src/gallium/auxiliary/util to src/util but Android.mk not modify Fixes: 848e7b94 ("Move stack debug functions to src/util") Signed-off-by: cheyang <[email protected]> Acked-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7851> (cherry picked from commit 83d1e2efd0e89191da80b62c048a9b7a471a86a3) - - - - - 5e65a36a by Timur Kristóf at 2020-12-11T09:41:40-08:00 aco: Use program->num_waves as maximum in scheduler. The scheduler doesn't take SGPR use into account, which can be a limiting factor on older GPUs. This patch fixes a CTS test crash on GFX6. CC: mesa-stable Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8040> (cherry picked from commit 731f8fc9dd5018e9ee55982207b70130ab72d22b) - - - - - 200a2f24 by Daniel Schürmann at 2020-12-11T09:41:41-08:00 aco/ra: use get_reg_specified() for p_extract_vector On GFX6/7, it might violate validation rules, otherwise. Fixes: 51f4b22feec3720c89458094a3245efc984115ee ('aco: don't allow unaligned subdword accesses on GFX6/7') Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8047> (cherry picked from commit fd49ba59a3888795ad0788259e3472e08c42bc24) - - - - - 07d6fa2a by Dylan Baker at 2020-12-14T09:23:02-08:00 .pick_status.json: Update to a7fb3954a1318a6b27e1405a9e799dd8f06eaa34 - - - - - f5246efd by Mike Blumenkrantz at 2020-12-14T09:23:04-08:00 zink: fix direct image mapping offset the x and y offsets here were improperly calculated without taking into account: * layer/level offset * x/y coord bpp Fixes: 8d46e35d16e ("zink: introduce opengl over vulkan") Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8058> (cherry picked from commit 456b57802eaf95d36e7b950bdb5ffd86a1c0dc63) - - - - - f9bc767b by Eric Anholt at 2020-12-14T09:23:05-08:00 nir: Redefine start/end_ip of blocks to fix NIR-to-TGSI liveness bugs. With the block's end_ip accidentally being the ip of the next instruction, contrary to the comment, you would end up doing end-of-block freeing early and have the value missing when it came time to emit the next instruction.. Just expand the ips to have separate ones for start and end of block -- while it means that nir_instr->index is no longer incremented by 1 per instruction, it makes sense for use in liveness because a backend is likely to need to do other things at block boundaries (like emit the if statement's code), and having an ip to identify that stuff is useful. Fixes: a206b581578d ("nir: Add a block start/end ip to live instr index metadata.") Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7658> (cherry picked from commit d3d28f6c2d1795d391442249343d8cd38356665d) - - - - - 62eea2b3 by Mike Blumenkrantz at 2020-12-14T09:23:05-08:00 zink: really fix direct image mapping offset (I mean it this time) I got confused and: * used the vkformat instead of the pipe format for getting format description * incorrectly calculated bpp but this time it's definitely 100% fixed I promise Fixes: 456b57802ea ("zink: fix direct image mapping offset") Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8074> (cherry picked from commit dfd0f042e0d8faa374629ea0a67422edff6d48c3) - - - - - c0403030 by Mike Blumenkrantz at 2020-12-14T09:23:07-08:00 st/pbo: fix pbo uploads without PIPE_CAP_TGSI_VS_LAYER_VIEWPORT the code here tries to be too smart and only use a geometry shader if there's actually multiple layers being uploaded, but the fragment shader also unconditionally reads gl_Layer as long as the pipe cap for gs is set, which means that in the case when the gs is dynamically disabled due to uploading a single-layer surface, the fs has no input to read for gl_Layer and everything breaks always using a gs isn't ideal, but it's considerably more work to manage multiple fs variants based on layer usage Fixes: c99f2fe70ec ("st/mesa: implement PBO upload for multiple layers") Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8067> (cherry picked from commit 614c77772ac2f48955537efcfefaf0609d6c03e5) - - - - - 7d5c0483 by Simon Ser at 2020-12-14T09:23:11-08:00 radv: fix access to uninitialized radeon_bo_metadata If the image tiling is set to VK_IMAGE_TILING_LINEAR, buffer_set_metadata will read an uninitialized radeon_bo_metadata. Signed-off-by: Simon Ser <[email protected]> Fixes: d5fd8cd46eee ("radv: Allow non-dedicated linear images and buffer.") Cc: mesa-stable Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7898> (cherry picked from commit ad19b0714a8d3cb51121b09b6e3915439d5f3452) - - - - - 7c0e171c by Dylan Baker at 2020-12-15T11:04:17-08:00 .pick_status.json: Update to ada9be1ec9e14fc045086411fbf2d3cb0efbbe2f - - - - - 6c2b0d7a by Robin Ole Heinemann at 2020-12-15T11:04:19-08:00 anv: Add DRM_RDWR flag in anv_gem_handle_to_fd The DRM_RDWR flag is needed for mmap with PROT_WRITE to work. Cc: mesa-stable Signed-off-by: Robin Ole Heinemann <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8075> (cherry picked from commit df76963a5cd56c677f189ad89d75935a76fca090) - - - - - adb6c1cc by Lionel Landwerlin at 2020-12-15T11:04:19-08:00 gallium/dri2: Don't forget protected content flag Signed-off-by: Lionel Landwerlin <[email protected]> Fixes: bd182777c8f2c4 ("egl: implement EGL_EXT_protected_surface support") Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8094> (cherry picked from commit d21cc94201ab1e6cb54ff33a7a835248fe336777) - - - - - d4f4d29a by Dylan Baker at 2020-12-16T10:19:43-08:00 docs: add release notes for 20.3.1 - - - - - d9062291 by Dylan Baker at 2020-12-16T10:19:56-08:00 VERSION: bump for 20.3.1 - - - - - 28 changed files: - .gitlab-ci.yml - − .gitlab-ci/container/x86_build_old.sh - .gitlab-ci/deqp-freedreno-a630-fails.txt - .gitlab-ci/deqp-panfrost-t860-fails.txt - .gitlab-ci/deqp-softpipe-fails.txt - .gitlab-ci/lava-gitlab-ci.yml - .pick_status.json - VERSION - docs/relnotes/20.3.0.rst - + docs/relnotes/20.3.1.rst - meson.build - src/amd/compiler/aco_instruction_selection.cpp - src/amd/compiler/aco_lower_to_hw_instr.cpp - src/amd/compiler/aco_optimizer.cpp - src/amd/compiler/aco_register_allocation.cpp - src/amd/compiler/aco_scheduler.cpp - src/amd/compiler/tests/test_optimizer.cpp - src/amd/vulkan/radv_cmd_buffer.c - src/amd/vulkan/radv_device.c - src/amd/vulkan/radv_pipeline.c - src/amd/vulkan/radv_shader_args.c - src/compiler/Android.nir.gen.mk - src/compiler/nir/nir.c - src/compiler/nir/nir.h - src/compiler/nir/nir_liveness.c - src/freedreno/vulkan/tu_clear_blit.c - src/freedreno/vulkan/tu_cmd_buffer.c - src/gallium/auxiliary/Android.mk The diff was not included because it is too large. View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/08169ff176b2fdbaf3b9b497a6e45aef4b0bfe43...d90622910ba2d726b6f43ade0a364d0eb04dd3bb -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/08169ff176b2fdbaf3b9b497a6e45aef4b0bfe43...d90622910ba2d726b6f43ade0a364d0eb04dd3bb You're receiving this email because of your account on salsa.debian.org.

