Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa


Commits:
8bb5a993 by Dylan Baker at 2020-12-04T12:53:31-08:00
relnotes: Add sha256sums for 20.2.4

- - - - -
99769eb7 by Dylan Baker at 2020-12-07T09:24:22-08:00
.pick_status.json: Update to ec3828add38a83b8c09fd5896265abc9d766162e

- - - - -
07a6a627 by Marcin Ślusarz at 2020-12-07T09:24:34-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)

- - - - -
857b9f42 by Rhys Perry at 2020-12-07T09:24:35-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)

- - - - -
1012f085 by Vinson Lee at 2020-12-07T09:24:36-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)

- - - - -
24565ec1 by Samuel Pitoiset at 2020-12-07T12:05:36-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)

- - - - -
0cd6e6d3 by Samuel Pitoiset at 2020-12-07T12:05:36-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)

- - - - -
de2bac90 by Dylan Baker at 2020-12-08T09:46:32-08:00
.pick_status.json: Update to f93b7d14d66d8ba70d44772d1a1b6696310b7d17

- - - - -
49f2b5f5 by Erik Faye-Lund at 2020-12-08T09:46:35-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)

- - - - -
ce0804cc by Samuel Pitoiset at 2020-12-08T09:46:38-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)

- - - - -
fba1d74e by yshi18 at 2020-12-08T09:46:41-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)

- - - - -
caa597bb by Dylan Baker at 2020-12-09T19:07:55-08:00
.pick_status.json: Update to 3f0da800eb4b8184c24707c52d5a519abe948898

- - - - -
7665dc40 by Mauro Rossi at 2020-12-09T19:08:04-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)

- - - - -
c8162aa7 by Andrii Simiklit at 2020-12-09T19:08:05-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)

- - - - -
d11cd6b2 by Boris Brezillon at 2020-12-09T19:08:06-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)

- - - - -
79570193 by Nanley Chery at 2020-12-09T19:08:10-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)

- - - - -
fe9eef31 by Jonathan Gray at 2020-12-09T19:29:30-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)

- - - - -
5a468a3c by Eric Anholt at 2020-12-09T19:32:36-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)

- - - - -
bd32ac29 by Witold Baryluk at 2020-12-09T19:33:58-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)

- - - - -
5741e393 by Bas Nieuwenhuizen at 2020-12-09T19:41:14-08:00
radv: Fix a hang on CB change by adding flushes.

This workaround fixes a hang while loading a renderdoc trace for me.

Since the workload does 1 mip per cmdbuffer it is quite hard to confirm
what exactly the conditions for the hang are but this is the most
restrictive set I found and it corresponds to a workaround in AMDVLK as
well.

CC: mesa-stable
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7210>
(cherry picked from commit 4cce4d22a72bf84459ee95223cc7d1c6542617fb)

- - - - -
2922cea2 by Bas Nieuwenhuizen at 2020-12-09T19:41:24-08:00
radv: Deal with unused attachments in mip flush

Fixes: 4cce4d22a72 ("radv: Fix a hang on CB change by adding 
flushes.")
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7813>
(cherry picked from commit aed8d30b507568b7fc0f32afca012f8def5aca16)

- - - - -
16221431 by Dylan Baker at 2020-12-10T12:38:06-08:00
.pick_status.json: Update to cf3fc79cd0ab55776bbbabe76237c272ab07133e

- - - - -
5bbaec9d by Tapani Pälli at 2020-12-10T12:38:10-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)

- - - - -
d5f1553d by Michel Dänzer at 2020-12-10T12:38:11-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)

- - - - -
15f44439 by Dylan Baker at 2020-12-11T09:40:05-08:00
.pick_status.json: Update to 84c8a35aa2ca4d4de66192933735094ed07b4aaa

- - - - -
a82561ec by cheyang at 2020-12-11T09:40:08-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)

- - - - -
07562fcf by Timur Kristóf at 2020-12-11T09:40:09-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)

- - - - -
69dd154c by Daniel Schürmann at 2020-12-11T09:40:10-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)

- - - - -
5534e540 by Dylan Baker at 2020-12-14T09:32:37-08:00
.pick_status.json: Update to a7fb3954a1318a6b27e1405a9e799dd8f06eaa34

- - - - -
76870cfa by Mike Blumenkrantz at 2020-12-14T09:32:40-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)

- - - - -
2ac5dec4 by Mike Blumenkrantz at 2020-12-14T09:32:41-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)

- - - - -
5ac08afc by Mike Blumenkrantz at 2020-12-14T09:32:41-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)

- - - - -
af6cadcc by Simon Ser at 2020-12-14T09:32:42-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)

- - - - -
02cd2546 by Daniel Schürmann at 2020-12-14T09:32:43-08:00
aco: fix DCE of rematerializable phi operands

Otherwise, if a phi gets spilled, the operand might be considered unused.

Fixes: d48d72e98af9436babeeb3a94b312f94bc582b36 ('aco: Initial commit of 
independent AMD compiler')

Reviewed-by: Rhys Perry <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8055>
(cherry picked from commit 0bccfd86f6e97611a3b9b4f227aa414bc3d04e02)

- - - - -
ef7ecc9f by Samuel Pitoiset at 2020-12-14T09:42:43-08:00
radv: fix ignoring the vertex attribute stride if set as dynamic

The vertex attribute stride should be ignored, so make sure it's
initialized to zero if dynamic to avoid computing a wrong offset.

The fact that each element of pStrides must be greater than or equal
to the maximum extent of all vertex input attributes fetched saves us
one user SGPR for the dynamic stride.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3627
Cc: 20.2
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7101>
(cherry picked from commit 48b988e35fe1c45e77138d92d162637b1ffc4486)

- - - - -
9bd698c5 by Samuel Pitoiset at 2020-12-14T09:42:43-08:00
radv: fix optimizing needed states if some are marked as dynamic

>From the Vulkan spec 1.2.157:

    "VK_DYNAMIC_STATE_STENCIL_TEST_ENABLE_EXT specifies that the
     stencilTestEnable state in VkPipelineDepthStencilStateCreateInfo
     will be ignored and must be set dynamically with
     vkCmdSetStencilTestEnableEXT before any draw call."

So, stencilTestEnable should be ignored if dynamic. While we are
at it, fix depthBoundsTestEnable too.

Cc: 20.2
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3633
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7112>
(cherry picked from commit bb00a6860eeb5c92db3dc4b98df1f2e568fa162d)

- - - - -
4dfd9121 by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7566>
(cherry picked from commit 0790105f2f0d1813dc2ecaf5e12e7131730a8bc1)

- - - - -
e9f13397 by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7566>
(cherry picked from commit c5e8f6700bf4c50cd273ed2f6c476c66557ccc37)

- - - - -
60e001e9 by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7566>
(cherry picked from commit f777d00a756d72cc01571ca94efa8afa3784fd4e)

- - - - -
4c5d644b by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7657>
(cherry picked from commit 0fcd379184d658285f3313c5c4026253e0ec6930)

- - - - -
436f9bd6 by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7684>
(cherry picked from commit bc7f442d8e03919cf7f8e6a470b3c0406e11a1f9)

- - - - -
c2bc10a6 by Samuel Pitoiset at 2020-12-14T09:42:43-08: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]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7786>
(cherry picked from commit b589df98622c811b397e6579358b2a51cff8a5ac)

- - - - -
1587141c by Danylo Piliaiev at 2020-12-14T10:44:48-08:00
nir/lower_returns: Append missing phis' sources after "break" 
insertion

After we lowered `return` into `break` - the control flow is changed and
the block with this change has a new successor, which means that in this
new successor phis should have additional source.

Since the instructions that use phis in the successor are predicated -
it's ok for a new phi source to be undef.

If `return` is lowered in a nested loop, `break` is inserted in the outer
loops, so all new blocks with break require the same changes to phis
described above.

Examples of NIR before lowering:

  block block_0:
  loop {
     block block_1:
     if ssa_2 {
       block block_2:
       return
       // succs: block_6
     } else {
       block block_2:
       break;
       // succs: block_5
     }
     block block_4:
  }
  block block_5:
  // preds: block_3
  vec1 32 ssa_4 = phi block_3: ssa_1
  // succs: block_6
  block block_6:

Here converting return to break should add block_2 to the phis
of block_5.

 block block_0:
 loop {
    block block_1:
    loop {
       block block_2:
       if ssa_2 {
         block block_3:
         return
         // succs: block_8
       } else {
         block block_4:
         break;
         // succs: block_6
       }
       block block_5:
    }
    block block_6:
    break;
    // succs: block_7
 }
 block block_7:
 // preds: block_6
 vec1 32 ssa_4 = phi block_6: ssa_1
 // succs: block_8
 block block_8:

Here converting return to break will insert conditional break in
the outer loop, changing block_6 predcessors.

Cc: <[email protected]>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3322
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3498
Signed-off-by: Danylo Piliaiev <[email protected]>
Reviewed-by: Rhys Perry <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6186>

- - - - -
44e3895e by Bas Nieuwenhuizen at 2020-12-14T10:44:48-08:00
radv: Skip tiny non-visible VRAM heap.

When I enable "Above 4G decoding" in my BIOS I still get 16 MiB of
non-visible VRAM on my 8G VRAM GPU ...

CC: mesa-stable
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6827>

- - - - -
5fc85c38 by Bas Nieuwenhuizen at 2020-12-14T10:44:48-08:00
radv: Fix budget calculations with large BAR.

If we don't have a non-visible VRAM heap, we should be counting
our non-visible VRAM allocations to the visible-VRAM heap.

CC: mesa-stable
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6827>

- - - - -
13a6dd3f by Bas Nieuwenhuizen at 2020-12-14T10:44:48-08:00
radv: Fix exporting/importing multisample images.

Otherwise FMASK metadata segfaults and on import we disable it ...

CC: mesa-stable
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7358>

- - - - -
44d0d449 by Marek Olšák at 2020-12-14T10:44:48-08:00
radeonsi: determine correctly if switching from normal launch to fast launch

Fixes: 3da91b3327f - radeonsi/ngg: add VGT_FLUSH when enabling fast launch

Reviewed-by: Pierre-Eric Pelloux-Prayer 
<[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>

- - - - -
9374a1ec by Marek Olšák at 2020-12-14T10:44:48-08:00
ac: fix detection of Pro graphics

Fixes: bfb928759 "ac: add radeon_info::is_pro_graphics"

Reviewed-by: Pierre-Eric Pelloux-Prayer 
<[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>

- - - - -
493400cf by Michel Dänzer at 2020-12-14T10:44:48-08:00
ac: Don't negate strstr return values in ac_query_gpu_info

strstr returns a pointer to the needle sub-string within the haystack
string if the latter contains the former, or NULL otherwise. So this
essentially always set info->is_pro_graphics = true, since probably no
marketing name ever contains all of these sub-strings.

Fixes: b635dff25620 "ac: fix detection of Pro graphics"
Reviewed-by: Pierre-Eric Pelloux-Prayer 
<[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7675>

- - - - -
b3e977dd by Marek Olšák at 2020-12-14T10:44:48-08:00
ac: fix min/max_good_num_cu_per_sa on gfx10.3 with disabled SEs

Fixes: 9538b9a68ed - radeonsi: add support for Sienna Cichlid

Reviewed-by: Pierre-Eric Pelloux-Prayer 
<[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>

- - - - -
e7d790fa by Rhys Perry at 2020-12-14T10:44:48-08:00
spirv: fix GLSLstd450Modf/GLSLstd450Frexp when the destination is vector

We can't write to an individual component in a function_temp vector, so we
have to use vtn_variable_store() which does a load+insert+store.

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3484
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6231>

- - - - -
786273a0 by Dylan Baker at 2020-12-15T11:02:16-08:00
.pick_status.json: Update to ada9be1ec9e14fc045086411fbf2d3cb0efbbe2f

- - - - -
d741a071 by Robin Ole Heinemann at 2020-12-15T11:02:23-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)

- - - - -
82d04906 by Dave Airlie at 2020-12-15T11:21:10-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)

- - - - -
825369ce by Marek Olšák at 2020-12-15T11:21:19-08:00
radeonsi: disable SDMA on gfx6-7 and gfx10.3 to decrease CPU overhead

same as gfx8-10

Reviewed-by: Pierre-Eric Pelloux-Prayer 
<[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7055>
(cherry picked from commit 205f1d79e2464bf565dd02a9cb86ad7e5a3bf29d)

- - - - -
053ab721 by Dylan Baker at 2020-12-16T09:41:49-08:00
docs: add release notes for 20.2.5

- - - - -
7e62e9a4 by Dylan Baker at 2020-12-16T09:42:03-08:00
VERSION: bump for 20.2.5

- - - - -
4485b8c3 by Timo Aaltonen at 2020-12-16T23:09:31+02:00
Merge branch 'upstream-unstable' into debian-unstable

- - - - -
e7f45cc1 by Timo Aaltonen at 2020-12-16T23:18:06+02:00
bump the version

- - - - -
a165a443 by Timo Aaltonen at 2020-12-16T23:33:05+02:00
release to sid

- - - - -


19 changed files:

- .gitlab-ci/deqp-softpipe-fails.txt
- .gitlab-ci/lava-gitlab-ci.yml
- .pick_status.json
- VERSION
- debian/changelog
- docs/relnotes/20.2.4.rst
- + docs/relnotes/20.2.5.rst
- meson.build
- src/amd/common/ac_gpu_info.c
- src/amd/common/ac_gpu_info.h
- 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/aco_spill.cpp
- src/amd/compiler/tests/test_optimizer.cpp
- src/amd/vulkan/radv_cmd_buffer.c
- src/amd/vulkan/radv_device.c


The diff was not included because it is too large.


View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/21c275e5a89e27ea5e04489be3f8ca471c3d08ee...a165a4433c24a65181eb51e5af00ba7f53d5e568

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/21c275e5a89e27ea5e04489be3f8ca471c3d08ee...a165a4433c24a65181eb51e5af00ba7f53d5e568
You're receiving this email because of your account on salsa.debian.org.


Reply via email to