-
cc1bd5c9
by Dylan Baker
at 2022-03-09T13:48:35-08:00
docs: add release notes for 22.0.0
-
4b45d80f
by Dylan Baker
at 2022-03-10T10:58:45-08:00
.pick_status.json: Update to cc4f0e804e6feee17a657d052f4f2ee32ebe53d0
-
acdab738
by Samuel Pitoiset
at 2022-03-10T10:58:49-08:00
radv: add reference counting for descriptor set layouts
The spec states that descriptor set layouts can be destroyed almost
at any time:
"VkDescriptorSetLayout objects may be accessed by commands that
operate on descriptor sets allocated using that layout, and those
descriptor sets must not be updated with vkUpdateDescriptorSets
after the descriptor set layout has been destroyed. Otherwise,
descriptor set layouts can be destroyed any time they are not in
use by an API command."
Based on ANV.
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5893
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14621>
(cherry picked from commit 66f7289d568db8711adb885acc56622e2aff252a)
-
b799d764
by Mike Blumenkrantz
at 2022-03-10T10:58:59-08:00
llvmpipe: fix debug print iterating in set_framebuffer_state
this would potentially access garbage memory by checking the existing
state using the incoming state's iterator values
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14857>
(cherry picked from commit 4c76a19ca35ded99a2f13eef59a0cd161e3c43b0)
-
3fc09b28
by Mike Blumenkrantz
at 2022-03-10T10:59:00-08:00
lavapipe: clamp clear attachments rects
there is at least one unnamed game which has problems with this, so try
to avoid crashing
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14655>
(cherry picked from commit 2d1b506acfe55165511a2bb83acb013353e531ab)
-
e6e021dc
by Mike Blumenkrantz
at 2022-03-10T10:59:00-08:00
llvmpipe: clamp surface clear geometry
avoid oob writes to avoid crashing
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14655>
(cherry picked from commit 165a880f1ae1f528d597bf3de138a29445b01a48)
-
b651d752
by Mike Blumenkrantz
at 2022-03-11T10:09:32-08:00
zink: map R8G8B8X8_SRGB -> R8G8B8A8_SRGB
this fixes a weird texstore bug that seems specific to this format
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15020>
(cherry picked from commit c99bd08921ebc46d0ad1af15acaed9b145cd7702)
-
f7ee7575
by Dylan Baker
at 2022-03-11T10:09:32-08:00
ci: Fixup some lvp expected passes
-
092f43be
by Mike Blumenkrantz
at 2022-03-11T11:03:43-08:00
lavapipe: update multisample state after blend state
null blend pipeline state will zero the blend struct, which would cause
values set here to be overwritten
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15282>
(cherry picked from commit 7114490115f1f1c95b647a0c400274f6f886ebf5)
-
37d4a31e
by Mike Blumenkrantz
at 2022-03-11T11:03:44-08:00
lavapipe: fix pipeline creation for blend and zs states
these values are read based on the specified subpass containing the
required attachments, not on the overall renderpass
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15282>
(cherry picked from commit 204ea77b0674fb611155bd3ba2e6169cc8646b3f)
-
d6c91199
by Mike Blumenkrantz
at 2022-03-11T12:21:36-08:00
aux/trace: rzalloc the context struct
this has problems if pointers are garbage
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14854>
(cherry picked from commit 8142fc5a455e010abf2ce55d0ad938f7ae88bb32)
-
919b0834
by Pierre-Eric Pelloux-Prayer
at 2022-03-11T12:21:41-08:00
util/slab: add slab_zalloc
A a variant that clears the allocated object to 0.
Cc: mesa-stable
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15298>
(cherry picked from commit caeec6262df31fd0f5e9c0be233c2b1aed5380c0)
-
7c997acb
by Erik Faye-Lund
at 2022-03-11T12:21:46-08:00
docs: fixup zink gl 4.3 requirements
The multiViewport feature isn't required for GL 4.3, it's required for
GL 4.1. Technically speaking, we could have just dropped it because we
already list the maxViewports requirement. But it seems better to be
very clear here to me.
Fixes: 29f8f21bff6 ("docs: document zink GL 4.3 requirements")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15300>
(cherry picked from commit e66613497567026ce421057939d027e5913462b5)
-
9de53fe5
by Mike Blumenkrantz
at 2022-03-11T12:21:48-08:00
zink: lower dmod on AMD hardware
this hardware won't return the correct value from dmod instructions,
so lower it to ensure that cts passes
nobody else will ever hit this, so perf isn't an issue and regular fmod
can be left alone
fixes (amd):
KHR-GL46.gpu_shader_fp64.builtin.mod_d*
Fixes: 5fae35fb17d6d89c4fe1d9d5a19d827caf25b9fc ('zink: fix 64bit float shader ops ')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15306>
(cherry picked from commit c24bca2d3a0e4255dbe155cfb7d942bfb104a2ad)
-
7412747f
by Rob Clark
at 2022-03-11T12:21:49-08:00
mesa: Fix discard_framebuffer for fbo vs winsys
GL is annoying when it comes to having different enums for winsys vs
fbo.
Note that the issue this closes was only accidentially exposed by a
change the resulted in sysmem vs GMEM path taken.
Fixes: db2ae511210 ("mesa: Skip partial InvalidateFramebuffer of packed depth/stencil.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6103
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15308>
(cherry picked from commit f4ec900953ba61188ecf58c3f648b11f8ef64764)
-
bf12c7cd
by Dylan Baker
at 2022-03-14T10:37:11-07:00
.pick_status.json: Update to d5870c45ae82c091e72f1258920aa54974e19a36
-
42bf17f6
by Gert Wollny
at 2022-03-14T10:43:55-07:00
virgl: Fix texture transfers by using a staging resource
This commit fixes the following flaws in the implementation:
* when a resource was re-allocated, the guest side storage
was also allocated
* when a source needs a readback before being written to, then
the call would go through vws->transfer_get, thereby bypassing the
staging resource, and this would fail on the host, because no
the allocated IOV was too small (just one byte)
* if the texture write would need neither flush nor readback, the
old code path would be used expecting that guest side backing stogage
for the texture.
v2: - actually do a readback to the stageing resource when it is required
- fix typo (Lepton)
v3: Don't use stageing transfers if the host can't read back the data
by rendering to an FBO or calling getTexImage, because in this case
we rely on the IOV to hold the date.
v4: Also don't use staging transfers if the format is no readback
format. Otherwise we have to deal with the resolve blit, and
this is currently not working correctly.
v5: add a new flag that indicates whether non-renderable textures can
be read back (either via glGetTexImage or GBM)
v6: Restrict the use of staging texture transfers to textures that can
be read back, and on GLES also if the they are bound to scanout and
the host uses minigbm to allocate such textures.
For that replace the flag indicating the capability to read back
non-renderable textures with a cap that indicates whether scanout
textures can be read back.
v7: update virglrenderer version in the CI
v8: update use of stageing (Chia-I)
v9: remove superflous check and assignment (Chia-I)
v10: disable stageing textures for arrays with stencil format. This is a
workaround for failures of the CI.
Fixes: cdc480585c9be368ddfdc33e2eb73e3582f25fe7
virgl/drm: New optimization for uploading textures
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14495>
(cherry picked from commit c9d99b7eec7ec14d6d71d381a424b6280d75a882)
Conflicts:
.gitlab-ci/container/build-crosvm.sh
-
17836a6d
by Jason Ekstrand
at 2022-03-14T10:44:20-07:00
lavapipe: Reset the free_cmd_buffers list in TrimCommandPool
We delete all the command buffers but they're still in the list so
future allocations may try to re-use them post-free and another trim
will re-delete them.
Fixes: b38879f8c5f5 ("vallium: initial import of the vulkan frontend")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15311>
(cherry picked from commit 66cb64c8ad339848e7538faa24800755dc6221f8)
-
4656dbee
by Connor Abbott
at 2022-03-14T10:44:21-07:00
ir3/ra: Sanitize parallel copy flags better
For pcopies we only care about the register's type, i.e. whether its a
half-register and whether it's an array (plus its size). Copying over
other flags like IR3_REG_RELATIV just leads to sadness and validator
assertions.
Fixes: 0ffcb19b9d9 ("ir3: Rewrite register allocation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14107>
(cherry picked from commit ab0ed4ff3f2eed6610597a0f0b42b8ca829790f9)
-
c2541d65
by Connor Abbott
at 2022-03-14T10:44:22-07:00
util/bitset: Fix off-by-one in __bitset_set_range
Fixes: b3b03e33c9f ("util/bitset: add BITSET_SET_RANGE(..)")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14107>
(cherry picked from commit 410e746198b498efdb9c37a63a0b8aad67469a4c)
-
a46dbbdc
by Mike Blumenkrantz
at 2022-03-14T15:33:08-07:00
zink: use 64bit mask for xfb analysis
I don't know how this worked before since all the values are oob?
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15224>
(cherry picked from commit a5c7d34fdf8403b0115d5eead7ca67027e93efc7)
-
63e9e339
by Mike Blumenkrantz
at 2022-03-14T15:33:09-07:00
zink: store the correct number of components for xfb packing outputs
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15224>
(cherry picked from commit 432700fc61a33e0c040d47d9b7bd8cfe970d35cc)
-
8bd9c64f
by Mike Blumenkrantz
at 2022-03-14T15:33:09-07:00
zink: correctly set xfb packed output offsets
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15224>
(cherry picked from commit 4ed7329236a576b6b6f615787bb722b960f32c6b)
-
deb02256
by Dave Airlie
at 2022-03-14T15:55:44-07:00
zink: workaround depth texture mode alpha.
Since spir-v only has single channel depth sampling, it breaks
with the old school GL_ALPHA depth mode swizzle, so just detect
that case and smash all the channels.
Cc: mesa-stable
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15297>
(cherry picked from commit 30cb63bead12ad0d7ff66a6a267400c3a07c4f86)
-
f00548ee
by Dave Airlie
at 2022-03-14T15:55:45-07:00
lavapipe: remove broken workaround for zink depth texturing.
Cc: mesa-stable
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15297>
(cherry picked from commit 938488f43986e21a22be5c8b8c7be4fcc60af989)
-
b8241251
by Mike Blumenkrantz
at 2022-03-14T15:55:45-07:00
lavapipe: use the correct value for dynamic render resolve attachment indexing
subpass->color_count is (obviously) not set yet, so this would just clobber
the color attachments any time resolves were used
Fixes: 8a6160a3542 ("lavapipe: VK_KHR_dynamic_rendering")
fixes:
dEQP-VK.draw.dynamic_rendering.multiple_interpolation.structured.with_sample_decoration.4_samples
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15330>
(cherry picked from commit c40dc39b5a87911cd6467b3ec647f382653a9b97)
-
3c040493
by Mike Blumenkrantz
at 2022-03-14T15:55:46-07:00
lavapipe: skip format checks for EXTENDED_USAGE
we can effectively skip any kind of checks here and just assume that one
of two scenarios is in effect:
* the user is about to attempt some incredibly illegal behavior that VVL will catch
* the user is about to attempt a pro gamer move and we'll be fine
in either case, it's EXTENDED_USAGE, so hopefully we're about to make a texture
view from a compatible and supported format
cc: mesa-stable
fixes:
dEQP-VK.image.extended_usage_bit_compatibility.image_format_properties*
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15320>
(cherry picked from commit 6a4c7ef7286f50b5396ffc68bcf6ad33eb67de07)
-
41a8a3b0
by Mike Blumenkrantz
at 2022-03-14T15:55:47-07:00
lavapipe: run nir_opt_copy_prop_vars during optimization loop
this enables better elimination of operations
fixes:
dEQP-VK.graphicsfuzz.spv-stable-mergesort-flatten-selection-dead-continues
fixes #5458
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15322>
(cherry picked from commit cf5c32a4b2d839305ef2104ab0acf973e63b940a)
-
6822ea63
by Dave Airlie
at 2022-03-14T20:13:22-07:00
crocus: don't map scanout buffers as write-back
This essentially ports 64405230774210488dedbc54d73ba394ec6ae802
Author: Keith Packard <keithp@keithp.com>
Date: Fri Aug 6 16:11:18 2021 -0700
iris: Map scanout buffers WC instead of WB [v2]
to crocus.
Fixes: f3630548f1da ("crocus: initial gallium driver for Intel gfx 4-7")
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15313>
(cherry picked from commit e8c3be0eb84bbefe1486f2543125c35b278ac1cf)
-
3aca53b5
by Mike Blumenkrantz
at 2022-03-14T20:13:22-07:00
anv: fix xfb usage with rasterizer discard
in the initial implementation, a stream like:
* CmdBeginTransformFeedbackEXT
* CmdSetRasterizerDiscardEnableEXT
* CmdDraw
* CmdEndTransformFeedbackEXT
* CmdBeginTransformFeedbackEXT
* CmdDraw
* CmdEndTransformFeedbackEXT
would never enable transform feedback, as it only checked for the change
in rasterizer_discard state
Fixes: 4d531c67dfd ("anv: support rasterizer discard dynamic state")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15269>
(cherry picked from commit 52f6978484fb738a06b45dd09c5dc6a1bd594fb7)
-
0185719f
by Mike Blumenkrantz
at 2022-03-14T20:13:22-07:00
anv: fix CmdSetColorWriteEnableEXT for maximum rts
Fixes: b15bfe92f7f ("anv: implement VK_EXT_color_write_enable")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15280>
(cherry picked from commit 1e3e7b3a4da6c7cd04879e0e4aab5f0d6f7b8d5f)
-
bbdcc0d1
by Mike Blumenkrantz
at 2022-03-14T20:13:22-07:00
anv: fix some dynamic rasterization discard cases in pipeline construction
cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15280>
(cherry picked from commit 5ab0e3f0bb09bde3d06b0ea448a6e183a813e286)
-
76b8a28d
by Pierre-Eric Pelloux-Prayer
at 2022-03-14T20:13:22-07:00
radeonsi: don't clear framebuffer.state before dcc decomp
This causes inconsistencies between sctx->framebuffer.state and other
sctx->framebuffer properties (like compressed_cb_mask).
The point of this code was to fix an issue with vi_separate_dcc_stop_query,
which was removed by 804e2924406 we can safely drop it.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6099
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15261>
(cherry picked from commit 968d68125c234bc347fde8fad543f0fc7d80d8b0)
-
c457e5b7
by Jason Ekstrand
at 2022-03-14T20:13:22-07:00
anv: Allow MSAA resolve with different numbers of planes
The Vulkan spec for VK_KHR_depth_stencil_resolve allows a format
mismatch between the primary attachment and the resolve attachment
within certain limits. In particular,
VUID-VkSubpassDescriptionDepthStencilResolve-pDepthStencilResolveAttachment-03181
If pDepthStencilResolveAttachment is not NULL and does not have the
value VK_ATTACHMENT_UNUSED and VkFormat of
pDepthStencilResolveAttachment has a depth component, then the
VkFormat of pDepthStencilAttachment must have a depth component with
the same number of bits and numerical type
VUID-VkSubpassDescriptionDepthStencilResolve-pDepthStencilResolveAttachment-03182
If pDepthStencilResolveAttachment is not NULL and does not have the
value VK_ATTACHMENT_UNUSED, and VkFormat of
pDepthStencilResolveAttachment has a stencil component, then the
VkFormat of pDepthStencilAttachment must have a stencil component
with the same number of bits and numerical type
So you can resolve from a depth/stencil format to a depth-only or
stencil-only format so long as the number of bits matches.
Unfortunately, this has never been tested because the CTS tests which
purport to test this are broken and actually test with a destination
combined depth/stencil format.
Fixes: 5e4f9ea363a6 ("anv: Implement VK_KHR_depth_stencil_resolve")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15333>
(cherry picked from commit d65dbe8018923e3a405b362c92a21caa30e66e83)
-
ab468e1e
by Jonathan Gray
at 2022-03-14T20:13:22-07:00
util: fix msvc build
Fix msvc build regression after 0536b691338f2759b850f9ec94634033a5d1f9e1
reported by Prodea Alexandru-Liviu.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6137
Fixes: 0536b691338 ("util: fix build with clang 10 on mips64")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15355>
(cherry picked from commit e50eb1ce7ab3bbbb71a4cb9016a2e41d0a30e08f)
-
7976ceda
by Rob Clark
at 2022-03-14T20:13:22-07:00
freedreno/ir3: Don't try re-swapping cat3 srcs
This can lead us to endless loops of "progress".. Note fixes commit
commit really just exposed an existing problem.
Fixes: 9c9e8c33498 ("nir: Reorder ffma and fsub combining")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6133
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15336>
(cherry picked from commit 05d687723530ed3c5c9f7d0addb3b047138613a3)
-
f254c2eb
by Alyssa Rosenzweig
at 2022-03-14T20:13:23-07:00
panfrost: Emulate GL_CLAMP on Bifrost
Hardware support was removed with Midgard. Use mesa/st to emulate GL_CLAMP with
nir_lower_tex automatically (the Zink lowering), and disable GL_MIRROR_CLAMP
which isn't lowered correctly.
Fixes *texwrap* Piglit tests on G52.
Fixes: f9ceab7b237 ("panfrost: Fix CLAMP wrap mode")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15253>
(cherry picked from commit 1f97819fbe56a388878a23f49c0cf47016e4dde0)
-
9c93c285
by Alyssa Rosenzweig
at 2022-03-14T20:13:23-07:00
pan/bi: Handle non-2D arrays
Handle arrays generically by using the last component of the coordinate source
as the array index. That works for both 2D arrays and cube arrays, fixing cube
arrays. Cube arrays were already handled correctly in core Panfrost code.
This code path is not tested in dEQP-GLES31 without exposing OES_cube_map_array,
which depends on OES_geometry_shader, which we don't have. Yet we do expose
PIPE_CAP_CUBE_ARRAY, so ARB_cube_map_array is exposed.
Disabling PIPE_CAP_CUBE_ARRAY would be an easy band-aid fix, but it's easy
enough to handle correctly.
dEQP-GLES31 passes with a hack enabling OES_cube_map_array [without geometry
shaders].
Also fixes 1D arrays on Bifrost for the same reasons.
Fixes: 70d6c5675d6 ("pan/bi: Emit TEXC with builder")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15254>
(cherry picked from commit 53f1e57ee7a7a6f7906c34cf7b78a39873fd00c2)
-
1dc29007
by Icecream95
at 2022-03-14T20:13:23-07:00
panfrost: Don't initialise the trampolines array
PIPE_MAX_SHADER_SAMPLER_VIEWS is 128, so we just end up initialising a
kilobyte of memory for no reason, when usually only a couple of
sampler views are used.
Fixes: 53ef20f08d4 ("panfrost: Handle NULL sampler views")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15366>
(cherry picked from commit 3e405afeb9c1cb1182f83e2a1fd6f0beb199df64)
-
ecf3675b
by Dylan Baker
at 2022-03-15T12:47:10-07:00
.pick_status.json: Update to dc247e5d4319b644e373534495cc75f41bc7bcd2
-
d63a6f52
by Mike Blumenkrantz
at 2022-03-15T12:47:19-07:00
lavapipe: always clone shader nir for shader states
these become owned and freed by llvmpipe, so ensure that freeing
them there won't cause crashes
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15281>
(cherry picked from commit 2f9976debc549450d37595bdbe34c9115c3605fb)
-
553c60c6
by Dylan Baker
at 2022-03-15T12:47:40-07:00
.pick_status.json: Mark dd9b8881e0ad84ab1e74d972a8233f5c03e7b37a as denominated
-
3c038239
by Dylan Baker
at 2022-03-15T12:47:40-07:00
.pick_status.json: Mark 5dbbc0f0a824e4addffeb115631a9c5bcb426c29 as denominated
-
08fd564c
by Dylan Baker
at 2022-03-16T09:27:02-07:00
.pick_status.json: Update to acbb0d86f71c950e29df70e357ae08e5ca903a49
-
157e3046
by Connor Abbott
at 2022-03-16T09:27:12-07:00
ir3/lower_spill: Fix corner case with oob offsets
If the base register is killed, it may be reused as the destination of a
ldp. In that case we should just skip resetting it afterwards.
Fixes regressions in dEQP-VK.ssbo.layout.random.scalar.38 later.
Fixes: 9912c61362b ("ir3/spill: Support larger spill slot offset")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15288>
(cherry picked from commit 5f020bcc8d00f91136d91f453c572684a48c149d)
-
7559a9f8
by Stefan Dirsch
at 2022-03-16T09:27:13-07:00
meson: restore private requires to libdrm in dri.pc file
Due to a typo the private requires to libdrm were lost in dri.pc.
Fixed another typo: Infastructure --> Infrastructure
Fixes: 3ae3569d822 ("meson: restore dri.pc file")
Signed-off-by: Stefan Dirsch <sndirsch@suse.com>
Tested-by: Stefan Dirsch <sndirsch@suse.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15375>
(cherry picked from commit c287ed4f398b43204af397a377b1a55bc2b03ff7)
-
3b0d0fbe
by Mike Blumenkrantz
at 2022-03-16T09:27:13-07:00
gallivm: fix oob image detection for cube/1dArray/2dArray/cubeArray
these all need to check for z coord oob to avoid crashing
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15388>
(cherry picked from commit 6345575f8a9e97f5856e53a1c3aee4474c4433c2)
-
8f648204
by Mike Blumenkrantz
at 2022-03-18T09:14:50-07:00
llvmpipe: fix occlusion queries with early depth test
for genuine early depth tests, the samplecount must be updated after depth
test but before samplemask is applied
for inferred-early or regular depth tests, the samplemask can be applied
before the depth test
Fixes: d9276ae965a ("llvmpipe: handle gl_SampleMask writing.")
fixes:
dEQP-VK.fragment_operations.early_fragment.sample_count_early_fragment_tests_depth_samples_4
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15319>
(cherry picked from commit 42e78ba12573323be35cf4a6e10e5d434b2a56c5)
-
9fef791f
by Anuj Phogat
at 2022-03-18T09:14:50-07:00
anv, iris: Add Wa_16011411144 for DG2
v2: Use CS_STALL instead of FLUSH_ENABLE in Iris (Lionel)
Add missing CS_STALL after SO_BUFFER change in Anv (Lionel)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> (v1)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: 22.0 <mesa-stable>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14947>
(cherry picked from commit 5cc4075f953245c143234f845769bba6ae5212fd)
-
d842baf7
by Sagar Ghuge
at 2022-03-18T09:14:50-07:00
intel/fs: Add Wa_22013689345
v2: Use a simpler framework (Lionel)
v3: Rebase, add task/mesh (Lionel)
v4: Fixup fence exec size (SIMDX -> SIMD1)
v5: Fix invalidate_analysis, add finishme comment (Curro)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: 22.0 <mesa-stable>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14947>
(cherry picked from commit 6031ad4bf690fe250d90063dec7e0269da5b3016)
-
6d31e112
by Sagar Ghuge
at 2022-03-18T09:14:50-07:00
intel/fs: Add Wa_14014435656
For any fence greater than local scope, always set flush type to at
least invalidate so that fence goes on properly.
v2: Fixup condition to trigger workaround (Lionel)
v3: Simplify workaround (Curro)
v4: Don't drop the existing WA (Curro)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: 22.0 <mesa-stable>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14947>
(cherry picked from commit 2e336c602de041a5bfd8c787b3c060b0df257947)
-
15ecd5a9
by Dylan Baker
at 2022-03-18T09:14:50-07:00
.pick_status.json: Update
-
28922eab
by Lionel Landwerlin
at 2022-03-23T09:10:04-07:00
anv: emit timestamp & availability using the same part of CS
We've run into issues before where PIPE_CONTROL races MI_STORE_*
commands. So make sure we emit the availability using the same type of
CS so that memory writes are properly ordered.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14552>
(cherry picked from commit 4e30da7874e6586c7ac94cd34560c782d0f9678d)
-
d743f958
by Lionel Landwerlin
at 2022-03-23T09:10:04-07:00
anv: flush tile cache with query copy command
This fixes the test_resolve_non_issued_query_data vkd3d-proton test.
This change is required on TGL+ (maybe ICL?) because on all platforms
3D pipeline writes are not coherent with CS. On previous platform we
fixed this by flushing the render cache to make sure data is visble to
CS before it writes to memory. But on more recently platforms,
flushing the render cache leaves the data in the tile cache which is
still not coherent with CS, so we need to flush that one too.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14552>
(cherry picked from commit 8b71118aa066ab125b7440912ed1e14da79c9451)
-
e5af048e
by Mike Blumenkrantz
at 2022-03-23T09:10:04-07:00
zink: force-add usage when adding last-ref tracking
this fixes desync+crash when:
1. usage is added for bs A
2. tracking is added for bs B
3. tracking is removed for bs B
4. context is destroyed
5. usage A is now dangling and will crash if accessed
as seen in glmark2
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15429>
(cherry picked from commit 7da211e24fe14d8b107461bdfcb3b8d67212f88a)
-
8c4d047a
by Mike Blumenkrantz
at 2022-03-23T09:10:04-07:00
zink: only update usage on buffer rebind if rebinds occurred
this is a harmless case, but it's still wrong
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15429>
(cherry picked from commit 8294d454245d4318befac7c8915e55db3d47cefd)
-
4286b5c0
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/ui: Fix mypy issue
-
8bd46a97
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/core: drop the main_sha field
It isn't actually used, so we don't need it.
-
29960e0b
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/core: Add proper type annotation for update_commits callback
-
3348844b
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/core: Add a method for updating commits
This is almost the same as the one in the ui, but without the UI
elements. It would be nice to share code between them, but I'm not sure
how to do that yet.
-
93f5f9b7
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/core: Add a MANUAL_RESOLUTION resolution
This status is given by the auto-picker when it cannot successfully
auto-pick
-
1178741f
by Dylan Baker
at 2022-03-23T09:10:04-07:00
pick/ui: correctly handle MANUAL_RESOLUTION
-
b25f04ac
by Dylan Baker
at 2022-03-23T09:10:04-07:00
core: don't pass the ui back into commit.apply
-
e7398410
by Dylan Baker
at 2022-03-29T11:25:56-07:00
.pick_status.json: Update to 8991e646411b73c1e03278267c80758e921f2352
-
420717c6
by Alyssa Rosenzweig
at 2022-03-29T12:21:39-07:00
panfrost: Fix primitive restart with 32-bit indices
There's an overflow here if index_size = 4. Caught when bringing up Valhall, not
sure why this was never caught before. Yikes.
Fixes: 7a6a5f3fe15 ("panfrost: Handle explicit primitive restart")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15461>
(cherry picked from commit 6d51c1b8987570bbf3f60d05ef6dc77edbe16ac7)
-
77699bb3
by Alyssa Rosenzweig
at 2022-03-29T12:21:39-07:00
pan/bi: Don't analyze helper reqs in !frag shaders
Waste of time, and possibly invalid too.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15461>
(cherry picked from commit 666b714a372b27f09dcc0ac6002a485deec62a0a)
-
81573439
by Jason Ekstrand
at 2022-03-29T12:21:39-07:00
spirv: Properly mangle generic pointers
Fixes: a8e53a772f61 ("spirv: Add generic pointer support")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15470>
(cherry picked from commit 7030d14e0d92becb3f348e615fe5a2b1f7d28762)
-
847a5dce
by Kenneth Graunke
at 2022-03-29T12:21:39-07:00
iris: Fix MOCS for copy regions
These were, unfortunately, backwards. The source is the texture.
The destination is the render target.
Fixes: d8cb76211c5 ("iris: Fix MOCS for buffer copies")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15473>
(cherry picked from commit 4de13d53fee35fa7d9f2b45930356537a5b2c34a)
-
3e37848f
by Mike Blumenkrantz
at 2022-03-29T12:21:39-07:00
nir/lower_is_helper_invocation: create load_helper_invocation instr with bitsize=1
the specification stipulates that this is a bool value, so don't load it as an int
or else nir_validate explodes
Fixes: f17b41ab4f0 ("nir: add lowering pass for helperInvocationEXT()")
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15402>
(cherry picked from commit cdcfcb791611b290cdbaa67641dcaf122dbaa614)
-
b66aad09
by Marek Olšák
at 2022-03-29T12:21:39-07:00
amd: add support for gfx1036 and gfx1037 chips
Both are identified as GFX1036 for simplicity.
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Tested-by: Yifan Zhang <yifan1.zhang@amd.com>
(cherry picked from commit f8cf5ea982adc4e1d5b6a531f83eea938583c830)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15493>
-
7591d622
by Dylan Baker
at 2022-03-29T12:21:45-07:00
docs: add release notes for 22.0.1
-
4a8d3189
by Dylan Baker
at 2022-03-29T12:22:21-07:00
VERSION: bump for release
-
a80d55d0
by Timo Aaltonen
at 2022-03-30T11:31:20+03:00
Merge branch 'upstream-experimental' into debian-experimental
-
9205d509
by Timo Aaltonen
at 2022-03-30T11:31:51+03:00
version bump
-
86d42c16
by Timo Aaltonen
at 2022-03-30T11:33:34+03:00
rules: Disable lto as suggested by upstream.
-
c6207669
by Timo Aaltonen
at 2022-03-30T11:36:55+03:00
revert-enabling-tlsdesc-support.diff: Revert a commit that's causing apps to crash. (LP: #1966221)
-
dc5f22db
by Timo Aaltonen
at 2022-03-30T11:47:45+03:00
release to experimental
-
1ca38736
by Timo Aaltonen
at 2022-04-04T12:40:08+03:00
Migrate to llvm-14.
-
cb6a5be2
by Timo Aaltonen
at 2022-04-04T12:40:43+03:00
release to experimental.