-
eb7995d6
by Dylan Baker at 2022-09-21T09:17:00-07:00
docs: add release notes for 22.2.0
-
3da8d291
by Dylan Baker at 2022-09-21T09:17:10-07:00
docs: Add sha256 sum for 22.2.0
-
f297f05c
by James Park at 2022-09-25T03:13:14+08:00
meson,amd: Remove Windows libelf wrap
Functionality isn't worth the maintenance cost.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18797>
-
6f87f199
by Martin Krastev at 2022-09-26T09:39:17+00:00
meson: add svga gallium driver to 'auto' group on arm/aarch64
svga gallium driver is a good citizen on arm/aarch64 linux targets.
Enable that driver for -Dgallium-drivers=auto builds.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
(cherry picked from commit 6e311dd7229b2afb478e65afe2f17d7fb422d01e)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18256>
-
c2eef037
by Dylan Baker at 2022-09-26T10:13:53-07:00
.pick_status.json: Update to 3730be9873d556918a20795b37399b7e2e9630b5
-
7240cc55
by Yonggang Luo at 2022-09-26T10:13:53-07:00
drm-shim: drop gnu99 override
If we override with gnu99 here, we effectively down-grade from C11,
meaning we can no longer assume static_assert support.
Fixes: 45fb815a756 ("util: implement STATIC_ASSERT using c++11 / c11 primitives")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Suggested-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18611>
(cherry picked from commit a9f3e011e5f14af4ac4ccd6e581b6ec7cd8b8554)
-
bf2c81b3
by Qiang Yu at 2022-09-26T10:13:53-07:00
nir: fix nir_xfb_info buffer_to_stream length
Fixes: 19064b8c3a8 ("nir: Add a pass for gathering transform feedback info")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17654>
(cherry picked from commit 417cf031a09f942f4aaea9999cfa31f5afe122cd)
-
0acef658
by Mike Blumenkrantz at 2022-09-26T10:13:53-07:00
zink: uncap ssbo size
since the transition to UINT pipe cap, this no longer needs to be
restricted to appease gallium
fixes #7103
cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18144>
(cherry picked from commit 96be036a6b521e45785f0ff53d983116c1f4db1d)
-
409f2d25
by Mike Blumenkrantz at 2022-09-26T10:13:53-07:00
zink: fix atomic ssbo indexing with non-32bit values
this has to adjust using dest size, not hardcoded as uint32
Fixes: 5a95c6b3282 ("zink: rewrite atomic ssbo intrinsics as atomic derefs")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18144>
(cherry picked from commit 99a4a9c6ff09f4a326341432ca75f18ddcdc0bf8)
-
231bf295
by Gert Wollny at 2022-09-26T10:13:53-07:00
r600/sfn: Handle shifts on Cayman
Fixes: 00599f6e7161065c51812174ca18427b9867f63f
r600/sfn: Schedule shift instruction on R600 in t-slot
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18619>
(cherry picked from commit 260cddf9ec20c3239187f3e0f73f5a886b3186bf)
-
95c92bac
by Mike Blumenkrantz at 2022-09-26T10:13:53-07:00
zink: split up get_clear_data()
make the array extension part reusable
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18627>
(cherry picked from commit d7c64ffcb8a55549d4d638eb7de7b21af4077a3f)
-
6393e4b3
by Mike Blumenkrantz at 2022-09-26T10:13:54-07:00
zink: make void clears more robust
void clears are intended to be the first clear applied to a surface,
so ensure that these don't clobber any scissored clears
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18627>
(cherry picked from commit 13a19ad90c4ea15aa169b31a8566d962a9970232)
-
548b1800
by Dave Airlie at 2022-09-26T10:13:54-07:00
lavapipe: fix 3d depth stencil image clearing.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18665>
(cherry picked from commit 9452e5e03ad777057790d94cce84343e953a5177)
-
553e016c
by Mike Blumenkrantz at 2022-09-26T10:13:54-07:00
zink: fix/relax resolve geometry check
there's no requirement in the spec that the geometry for resolves must match,
only that the geometry must be positive (i.e., no flipped extents)
this avoids major perf issues for scaled resolves
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18364>
(cherry picked from commit 513fcb793600056b421b5528325d192e7e23a328)
-
aff9edc1
by Mike Blumenkrantz at 2022-09-26T10:13:54-07:00
zink: fix atomic ssbo fadd offsets
Fixes: 99a4a9c6ff0 ("zink: fix atomic ssbo indexing with non-32bit values")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18684>
(cherry picked from commit e13e139bcbd4f34ff16d99ee63caef6187d9451a)
-
66ab591a
by Mike Blumenkrantz at 2022-09-26T10:13:54-07:00
st/bitmap: use normalized coords in samplers with lowered rects
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18614>
(cherry picked from commit 25c36c5caf1637f24d33d8e18b78fbaf7f178aff)
-
26c82a7e
by Mike Blumenkrantz at 2022-09-26T10:13:54-07:00
st/drawpixels: use normalized coords in samplers with lowered rects
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18614>
(cherry picked from commit a96151f64533e0d6c7134aafcc10f0cdf87227ac)
-
c0c5ced0
by Marcin Ślusarz at 2022-09-26T13:11:06-07:00
intel/compiler: remove second shading rate lowering for mesh
It's already called in brw_postprocess_nir and calling it the second time
actually breaks shading rate.
Initially, when I added this call here in 9acb30c8c40, I was testing it
on an internal tree, which didn't have brw_nir_lower_shading_rate_output call
in brw_postprocess_nir.
Fixes: 9acb30c8c40 ("intel/compiler: implement primitive shading rate for mesh")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18702>
(cherry picked from commit cfd1e5a91e57a8a2ed7b6dfe9a07c5ef46ddc28f)
-
ed090af4
by Lionel Landwerlin at 2022-09-26T13:11:09-07:00
anv: clear descriptorsets if AllocateDescriptorSets fails
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7285
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18719>
(cherry picked from commit 369c12e5be3b0d009688082319c8386265056e17)
-
6e4ff8b3
by Marek Olšák at 2022-09-26T13:11:09-07:00
radeonsi: don't flush asynchronously for fence_server_signal
See the comment.
Fixes: 21b3a234 - mesa: fix SignalSemaphoreEXT behavior
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18223>
(cherry picked from commit da68678171072747ff1ee784dcf901cad2c98d62)
-
b133496b
by Daniel Schürmann at 2022-09-26T13:11:10-07:00
aco/optimizer: disallow can_eliminate_and_exec() with s_not
Totals from 295 (0.22% of 134913) affected shaders: (GFX10.3)
CodeSize: 1016564 -> 1016896 (+0.03%); split: -0.05%, +0.09%
Instrs: 187659 -> 187724 (+0.03%); split: -0.08%, +0.11%
Latency: 2839516 -> 2839541 (+0.00%); split: -0.01%, +0.01%
Copies: 12301 -> 12305 (+0.03%); split: -0.01%, +0.04%
PreSGPRs: 10266 -> 10268 (+0.02%)
Closes: #7024
Cc: mesa-stable
Tested-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18722>
(cherry picked from commit 98e3c446d89ab24bdad6cdb779860895d7dd8d31)
-
7c4dd319
by Timur Kristóf at 2022-09-26T13:11:10-07:00
aco/optimizer_postRA: Mark a register overwritten when predecessors disagree.
Affects blocks whose some (but not all) predecessors overwrite a register..
This commit fixes glitches in some games which regressed because of the
improved SCC no-compare optimization.
Fossil DB stats on Navi 21:
Totals from 2816 (2.09% of 134906) affected shaders:
CodeSize: 24224276 -> 24241580 (+0.07%)
Instrs: 4570595 -> 4574921 (+0.09%)
Latency: 53680256 -> 53693655 (+0.02%); split: -0.00%, +0.02%
InvThroughput: 9829289 -> 9830573 (+0.01%)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7257
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7305
Fixes: 2e56e2342094e8ec90afa5265b1c43503f662939
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488>
(cherry picked from commit 63063dd5ce4ef4a7a4c305c0905900aa25c5abe2)
-
fd910a09
by Timur Kristóf at 2022-09-26T13:11:11-07:00
aco/optimizer_postRA: Don't assume all operand registers were written by same instr.
This assumption is no longer true since the post-RA optimizer
can work across blocks. It is now possible that some control
flow paths overwrite some but not all registers of an operand.
This commit may prevent invalid optimizations and/or assertion
failures (on debug builds).
Fossil DB stats unaffected on Navi 21.
Fixes: 0e4747d3fb7ec15f8c1d6b971b1352249e7d95c6
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488>
(cherry picked from commit 2eab413cf7964bea3026f43f3c3a12323c281a9c)
-
ae4bc6fe
by Timur Kristóf at 2022-09-26T13:11:12-07:00
aco/optimizer_postRA: Fix logical control flow handling.
Change reset_block() so it only considers the logical
predecessors for VGPRs. Relevant for some optimizations
across loops.
This commit fixes an assertion failure which was triggered
by Zink in a piglit test.
Fossil DB stats unaffected on Navi 21.
Fixes: 2e56e2342094e8ec90afa5265b1c43503f662939
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488>
(cherry picked from commit a8dd07518c59af0087ed311cee232c31c3e8268c)
-
ee4b192b
by Emma Anholt at 2022-09-26T13:11:15-07:00
turnip: Fix the "written stencil is unmodified" check.
We want to know if anything writes stencil, not if all of them do.
Fixes: b2a60c157e4d ("turnip: add LRZ early-z support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18691>
(cherry picked from commit b9f9bfa5560a0d5e8a8bf71a146ffd11f1196173)
-
fd2c55b4
by Samuel Pitoiset at 2022-09-26T13:11:15-07:00
radv: make sure to initialize wd_switch_on_eop before checking its value
This is technically not a bug because it might just trigger
SWITCH_ON_EOI when streamout is used and I think it was fine.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7303
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18700>
(cherry picked from commit 578e30f3e61f9fc58b738b61b91b23c94973f59e)
-
a52f662a
by Jonathan Gray at 2022-09-26T13:11:16-07:00
iris: check i915 features after hw gen
when running recent Mesa on i855 (gen 2) without amber drivers:
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: iris
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: iris
move the i915 feature check to after the hardware generation check
which results in:
MESA: warning: Driver does not support the 0x3582 PCI ID.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: iris
MESA: warning: Driver does not support the 0x3582 PCI ID.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: iris
Cc: mesa-stable
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18563>
(cherry picked from commit ed5d16cec197d163a2de686d5dad44ef7518a716)
-
2baf3ce6
by Jason Ekstrand at 2022-09-26T13:11:19-07:00
iris: Use a larger alignment for buffer allocations
This is likely required for OpenGL buffer texture allocations. It'll
also make buffer copies faster if things are generally nicely aligned.
It's definitely required for OpenCL.
Fixes: 32c5d6d1dca2 ("iris: Add an alignment parameter to iris_bo_alloc()")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811>
(cherry picked from commit 29841343951a21242d454fc163e7d4163f769173)
-
0320c2b1
by Jason Ekstrand at 2022-09-26T13:11:19-07:00
iris: Fix more BO alignments
Fixes: 32c5d6d1dca2 ("iris: Add an alignment parameter to iris_bo_alloc()")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811>
(cherry picked from commit f4c05f319e356d9aaa042958c5db5893dcf693b0)
-
c0e6fe20
by Jason Ekstrand at 2022-09-26T13:11:20-07:00
iris: Handle resource offsets in buffer copies
Fixes: c5b22441f1c ("iris: Fix buffer -> buffer copy_region")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811>
(cherry picked from commit ea185aef032f99da21a1797f38d8f34b1816bba7)
-
eaf643f2
by Erik Faye-Lund at 2022-09-26T13:11:21-07:00
mesa/st: always use normalized coords for samplers
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: ed0e9862c56 ("st/mesa: implement PBO downloads for ReadPixels")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708>
(cherry picked from commit 484205b7ebfc937821b7196d779d9c51fcb7d612)
-
33ccf9ff
by Erik Faye-Lund at 2022-09-26T13:11:21-07:00
mesa/st: always use normalized coords for samplers
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: 41e093fc98c ("st/pbo: add a fast pbo download code-path")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708>
(cherry picked from commit 1a135bdd6ce39f155e92b881829d642664a5fcfd)
-
f94eeaeb
by Erik Faye-Lund at 2022-09-26T13:11:22-07:00
mesa/st: always use normalized coords for samplers
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: e7b95619596 ("gallium: implement compute pbo download")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708>
(cherry picked from commit 37733c100d61cd47ba6ba30bb6fa1e402dd88901)
-
dba8e3f3
by Tapani Pälli at 2022-09-26T13:11:22-07:00
mesa/st: fix a set_sampler_views call parameter order
Fixes: e7b95619596 ("gallium: implement compute pbo download")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18745>
(cherry picked from commit d68e74955c819dd272c4751da191f4670ea4a037)
-
c08e78ab
by Emma Anholt at 2022-09-26T13:11:25-07:00
turnip: Fix busy-waiting on syncobjs with OS_TIMEOUT_INFINITE.
I noticed that glmark2's glFinish()es in its offscreen rendering tests
under zink were spinning. When we passed -1 as the timeout for
drmSyncobjWait(), the kernel would immediately return ETIME.
Fixes: 0a82a26a1854 ("turnip: Porting to common implementation for timeline semaphore")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18739>
(cherry picked from commit 5e39b52e6a42a67bb681ec146af9a8866ea7a3c4)
-
7b1f40a3
by Connor Abbott at 2022-09-26T13:11:27-07:00
tu: Fix maxPerStageDescriptorUpdateAfterBindInputAttachments
We need this to be the same as maxPerStageDescriptorInputAttachments.
Fixes: d9fcf5de55a ("turnip: Enable nonuniform descriptor indexing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18757>
(cherry picked from commit f483419c23782f0634845c031b4f783c80ccdadd)
-
90001a78
by Connor Abbott at 2022-09-26T15:10:13-07:00
ir3/analyze_ubo_ranges: Account for reserved consts
We weren't accounting for the reserved consts when calculating how much
we can upload. This led to assertion failures later if we pushed too
much.
Fixes: d3b7681df28 ("tu: ir3: Emit push constants directly")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18757>
(cherry picked from commit 8cb1deded60e4b8d101e4a3055078f9434aa7d8f)
-
6cf16955
by Lionel Landwerlin at 2022-09-26T15:10:13-07:00
anv: add missing wokraround for texture cache invalidate
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18743>
(cherry picked from commit f9dbb65e7feac3e5d8558e21b2a6a2928f3682b9)
-
d600acf6
by Caio Oliveira at 2022-09-26T15:10:14-07:00
nir/lower_task_shader: Don't fail adding a launch when last instruction is a jump
Fixes: 8aff8d3dd42 ("nir: Add common task shader lowering to make the backend's job easier.")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18442>
(cherry picked from commit 3f4343c7cd247cd089ad8f63a72541da39346259)
-
7cb53bcf
by Mike Blumenkrantz at 2022-09-26T15:10:14-07:00
zink: handle culldistance xfb outputs like clipdistance
fixes:
spec@ext_transform_feedback@builtin-varyings gl_culldistance
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18724>
(cherry picked from commit 21ba47c821454dc53be60fb4da2ec58cdb28b53c)
-
6094dba1
by Lionel Landwerlin at 2022-09-26T15:10:15-07:00
intel/nir/rt: fixup generate hit
This function copies the potential hit from its memory location to the
committed hit location. A couple of fields got their bit offset wrong.
Fixes some CTS tests in dEQP-VK.ray_query.*
v2: Copy primitive/instance leaf pointers
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 046571479028 ("intel/nir/rt: add more helpers for ray queries")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit a88f725eeaa0ae65c57927e74fcc369bd926e1a8)
-
a13dc0cd
by Lionel Landwerlin at 2022-09-26T15:10:15-07:00
intel/nir/rt: spill/fill the entire ray query data
We need the traversal stack to saved/restored along with mem hits.
Total spill/fill is 256bytes.
We can potentially optimize this but we have to be very careful about
what state the query is in.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300ae3 ("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit f843bec7de903752734c8cb8e66c57e91f5a10fb)
-
318020df
by Lionel Landwerlin at 2022-09-26T15:10:16-07:00
intel/nir/rt: fix ray query proceed level
Initially the level is world (top level), then it's whatever level the
potential hit is.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300ae3 ("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit 259b1647e63ae8c25730feb4e0190211938fa296)
-
87f60955
by Lionel Landwerlin at 2022-09-26T15:10:16-07:00
intel/nir/rt: change scratch check validation
It's very unfortunate that we have the RT scratch being conflated with
the usual scratch. In our implementation those are 2 different buffers.
The usual scratch access are done through the scratch surface state
(delivered through thread payload), while RT scratch (which outlives
thread dispatch with shader calls) is its own buffer.
So checking the NIR scratch size makes no sense as we can have normal
scratch accesses completely unrelated to RT scratch accesses.
This change switches the validation by looking at whether the scratch
base pointer intrinsic is being used (which is what we use/abuse to
implement RT scratch).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300ae3 ("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit f7fab09a07b4196eb68c31ff42057f10b3e55cb1)
-
8a3a0210
by Lionel Landwerlin at 2022-09-26T15:10:17-07:00
intel/nir/rt: store ray query state in scratch
Initially I tried to store ray query state in the RT scratch space but
got the offset wrong. In the end putting this in the scratch surface
makes more sense, especially for non RT stages.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300ae3 ("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit 838bbdcf2ef954830061218fcdb1800baa8855b6)
-
a7750abc
by Lionel Landwerlin at 2022-09-26T15:10:17-07:00
intel/fs: fixup a64 messages
And run algebraic when either int64 for float64 are not supported so
those don't end up in the generated code.
Cc: mesa-stable
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
(cherry picked from commit 139e8f46358475520fdf2fe80cbe116adfe8084d)
-
35ebfa8a
by Pierre-Eric Pelloux-Prayer at 2022-09-26T15:10:18-07:00
radeonsi/gfx11: don't set VERTS_PER_SUBGRP to 0
It seems slower.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes: 25a66477d02 ("radeonsi/gfx11: register changes")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18758>
(cherry picked from commit 4fdf10fdafe5ef4333afeb478e742c0a24ce3898)
-
34aa2907
by Yiwei Zhang at 2022-09-26T15:10:21-07:00
mesa/st: emit string marker based on PIPE_CAP_STRING_MARKER
Fixes: 10ac88b72fa ("mesa/st: drop emit string marker device table entry.")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18803>
(cherry picked from commit 37900ee2dd13b735a6e46ddd272f45df4c8ad8a9)
-
4295192f
by Timur Kristóf at 2022-09-26T15:10:22-07:00
radv: Use a fallback for marketing name when libdrm doesn't know it.
Currently for GPUs which don't have a marketing name in libdrm,
RADV just prints "(null) (RADV ...)", which looks bad.
This commit replaces the "(null)" with "AMD Unknown".
Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18775>
(cherry picked from commit 25e1c3d5b3ab4e066dd36c0a964ce7d413dac02e)
-
8f9fc8e1
by Dave Airlie at 2022-09-26T15:10:23-07:00
lavapipe: take layers into account around render surface creation.
This makes the code more consistent with handling layers, but also
makes sure a new surface is created when the w/h/layers changes.
Fixes: 8a6160a354282 ("lavapipe: VK_KHR_dynamic_rendering")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18811>
(cherry picked from commit 21d39dd1deb03366f54c4d7bfa09835cab0f1ca9)
-
6635957f
by Dave Airlie at 2022-09-26T15:10:23-07:00
lavapipe: handle view mask layer count properly for begin rendering.
If the view mask is set the layer count should be taken from it,
not from the layerCount.
Fixes: 8a6160a354282 ("lavapipe: VK_KHR_dynamic_rendering")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18811>
(cherry picked from commit fe5636af6e0501305e020e8ac7d383931ed68543)
-
1cfa6ef6
by Dave Airlie at 2022-09-26T15:10:24-07:00
llvmpipe: memset empty images in the key
This fixes a bunch of valgrind warnings in
dEQP-VK.pipeline.pipeline_library.descriptor_limits.fragment_shader.storage_images_63
Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18812>
(cherry picked from commit b144d3e6a7e9a31c8b62e43035f15dab34932273)
-
73e50fdb
by Dave Airlie at 2022-09-26T15:10:24-07:00
llvmpipe: bind sampler views/images properly.
There is some code that relies on TGSI here, and it has limits.
For now always just bind resources > 31.
Fixes
dEQP-VK.pipeline.pipeline_library.descriptor_limits*
Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18812>
(cherry picked from commit 16fd0c11c66b8b48c3835202fab77a0c50828c0b)
-
3c44bd11
by Dylan Baker at 2022-09-27T10:03:17-07:00
.pick_status.json: Update to c268ae9efe602129b848c800dca83411d55c3aab
-
23cab32e
by Mike Blumenkrantz at 2022-09-27T10:03:29-07:00
lavapipe: set writemask for compute shader buffers
I don't know how this wasn't being set?
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827>
(cherry picked from commit 6c935f3f3da5935a12ec1ace0f7541f047b3b526)
-
380ffeb2
by Mike Blumenkrantz at 2022-09-27T10:03:30-07:00
lavapipe: propagate shader access info across libraries
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827>
(cherry picked from commit 6db172436a71a0e70a94c39d8eddb691e95c5cfb)
-
cf2be662
by Mike Blumenkrantz at 2022-09-27T10:03:31-07:00
zink: free vertex_state_cache on shutdown
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784>
(cherry picked from commit 903aba413d833005de37bdd8d67608cff8dba598)
-
01edc6f1
by Mike Blumenkrantz at 2022-09-27T10:03:31-07:00
zink: always unset var->data.explicit_xfb_buffer
ensure that this isn't accidentally triggering for non-xfb shaders
Fixes: 6d40db84c9d ("zink: handle direct xfb output from output variables")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784>
(cherry picked from commit 53004e57d68af9673cab6195ce67213245ec149f)
-
883c0f7b
by Mike Blumenkrantz at 2022-09-27T10:03:32-07:00
zink: avoid overflow when clamping bufferviews
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784>
(cherry picked from commit 084f3b6664116c2da4dc458d8a13e957a9331b4a)
-
8a408527
by Yonggang Luo at 2022-09-27T10:03:32-07:00
ci/docs: Stick to specific version of python packages
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18833>
(cherry picked from commit 9cbfe9a8baedb100b6fa7eba1ae9fe33363838c1)
-
a53554f3
by Erik Faye-Lund at 2022-09-27T10:03:34-07:00
docs: fixup broken rst syntax
Seems I messed this up when converting things, and nobody noticed until
now!
Fixes: d4397c00485 ("docs: use envvar role for envvars")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18641>
(cherry picked from commit c816081eea2865d04bc67950e79ec7e8b143b88d)
-
5cba5134
by Dylan Baker at 2022-09-27T10:45:35-07:00
.pick_status.json: Mark 49efa73ba11c4cacaed0052b984e1fb884cf7600 as denominated
-
b0a45e65
by Dylan Baker at 2022-09-27T10:45:36-07:00
.pick_status.json: Mark 5b7c2dffc43eb7ada61807a6e679cc2c1b3b2682 as denominated
-
bef8fe63
by Dylan Baker at 2022-09-27T10:47:52-07:00
.pick_status.json: Mark 1aacd9492de42412c6c9ca79d48a40c4ffebcd79 as backported
-
bc71af26
by Dylan Baker at 2022-09-27T10:48:22-07:00
.pick_status.json: Mark cbad4adc133b16c803ec9445c8dd144bc5023a62 as denominated
-
5e73858b
by Dylan Baker at 2022-09-27T10:49:05-07:00
.pick_status.json: Mark 40a235c9a82027bcb92d34b7386ea6b1a2e1d587 as denominated
-
24af5a7f
by Yonggang Luo at 2022-09-27T18:08:15+00:00
util: Disable usage of __attribute__((__const__)) when the compiler is clang
Clang didn't implement __attribute__((__const__)) properly for release build.
The issue tracker is: https://github.com/llvm/llvm-project/issues/56993
Closes #6781
Closes #6782
Closes #7170
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18798>
-
358e054b
by Dylan Baker at 2022-09-28T10:14:58-07:00
.pick_status.json: Update to 3ed712f7483791aa0a256472d276ff5a83c643bc
-
70e2817f
by Mike Blumenkrantz at 2022-09-28T10:14:58-07:00
zink: always run optimize_nir after lower_64bit_vars
it's otherwise possible (and likely) that optimizations won't
happen since there's no shader key data active
Fixes: 5b2f850425e ("zink: rewrite 64bit shader i/o as 32bit")
SoroushIMG <soroush.kashani@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18728>
(cherry picked from commit 0f053f0f07cb28a50faa6732430f08e8ba368900)
-
d5370576
by Mike Blumenkrantz at 2022-09-28T10:14:58-07:00
zink: don't flatten 64bit arrays during rewrite
dunno what I was thinking here
Fixes: 5b2f850425e ("zink: rewrite 64bit shader i/o as 32bit")
SoroushIMG <soroush.kashani@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18728>
(cherry picked from commit 17e3df4cd2757e79a4fd77f52a2d23ff9084578b)
-
1ab6d664
by Mike Blumenkrantz at 2022-09-28T10:14:58-07:00
mesa: set normalized_coords for bindless texture buffer samplers
this isn't "used", but it's the default
cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18845>
(cherry picked from commit 7829fb9adf9b21c6f35c1932ee86f8f64dfda7cf)
-
ce21dde0
by Lionel Landwerlin at 2022-09-28T10:14:58-07:00
intel/nir: fixup preserved metadata in rayquery lowering
Another case of not clearing the metadata correctly.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300a ("intel/fs: lower ray query intrinsics")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
(cherry picked from commit 1ffd28149f4779a2097262ecc61ec39e96cdcd11)
-
63fc4894
by Lionel Landwerlin at 2022-09-28T10:14:58-07:00
intel/nir: fix potential invalid function impl ptr usage
We keep the nir_builder::impl value around, but we've run some passes
that might have change the main function.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 96fde5518b5c ("intel/rt: Add a helper to create the raygen trampoline shader")
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
(cherry picked from commit 8d580de4a9dd6ce859a9f0aeadb83cc3c3d4ce5a)
-
b4c91f08
by Lionel Landwerlin at 2022-09-28T10:14:58-07:00
intel/nir: disable assert on async stack id
This can be accessed from :
- RT shaders
- CS trampoline shader
We missed the second part here.
Fixes: 046571479028 ("intel/nir/rt: add more helpers for ray queries")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
(cherry picked from commit 57593c539529f0b06c2395d1882e6e6d6477362a)
-
93723998
by Pierre-Eric Pelloux-Prayer at 2022-09-28T10:14:58-07:00
tc: do a GPU->CPU copy to initialize cpu_storage
If the GPU-side storage has been written to without using cpu_storage,
then we have to initialize the CPU-side storage correctly.
This requires a sync + copy but it's a one time operation so it shouldn't
affect performance much.
I don't think it fixes any existing bug, but the next commit will need
this to behave correctly.
cc: mesa-stable
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18774>
(cherry picked from commit 8af8dc97bc3edb912899a5da9399614677567810)
-
a4222b08
by Pierre-Eric Pelloux-Prayer at 2022-09-28T10:14:58-07:00
tc: don't use CPU storage for glBufferData
This fixes a performance regression with yquake2 cause by
the enablement of cpu_storage by default for radeonsi in
a5a8e197413.
Fixes: a5a8e197413 ("radeonsi: enable tc cpu_storage by default")
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18774>
(cherry picked from commit e06c332bf77ed7ec0b37a58f644e0f4e0c06fbee)
-
63a60728
by Mike Blumenkrantz at 2022-09-28T10:14:58-07:00
aux/trace: dump depth_clamp for rasterizer state
cc: mesa-stable
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18783>
(cherry picked from commit 4c58b92e44c16ba251ec3b0b085ca25657a5d55e)
-
94c771bc
by Mike Blumenkrantz at 2022-09-28T10:14:58-07:00
zink: set layouts before possibly reordering image copies
layout-setting may change which cmdbuf can be used
Fixes: 731d7be3756 ("zink: make get_cmdbuf() public")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18727>
(cherry picked from commit 3ed712f7483791aa0a256472d276ff5a83c643bc)
-
5383fd12
by Feng Jiang at 2022-09-28T18:49:43+00:00
virgl/vtest: fix memory overwrite problem in virgl_vtest_send_get_caps()
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
(cherry picked from commit 060936fe0de668127310a65e607fa4b7b48d6f0a)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18071>
-
6b77710d
by Jesse Natalie at 2022-09-28T19:03:32+00:00
u_atomic: Add a helper for pointer compare-exchange
Notably this helps with MSVC, which complains about compiling the not-taken
branches of the ternary when called with pointer args. Using a version that
doesn't have "runtime" sizeof checks eliminates the warnings.
Reviewed-by: Jonathan Strobl <jonathan.strobl@gmx.de>
(cherry picked from commit 6718bff75b4d3823df5f9c1d66eace07d37e9c92)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18349>
-
8a57b219
by Jonathan at 2022-09-28T19:03:32+00:00
gallium/u_threaded: Prepare for buffer sharedness tracking
tc_add_to_buffer_list and tc_bind_buffer need the tc instance too.
(cherry picked from commit aa878030690d4354da7574a2c7536d2308b2d0ca)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18349>
-
897e382d
by Jonathan at 2022-09-28T19:03:32+00:00
gallium/u_threaded: buffer sharedness tracking
This fixes TC's buffer invalidation code for buffers that are shared
between contexts.
TC is unable to notify other TCs in case it replaces a shared buffer's
underlying storage when invalidating, causing those other TCs to use
wrong buffer IDs for busyness tracking, which leads to corruption due
to invalidation fast-paths being triggered when they shouldn't be.
This patch addresses this issue by tracking if a buffer is shared, and
if it is, disabling buffer storage replacement for the affected buffer.
This is achieved by tracking which TC instance first accessed a certain
buffer. If a second instance then accesses it as well, it will realize
that it isn't the only one working on the buffer and mark the buffer
accordingly.
If TC needs to invalidate a buffer for the correctness of an operation
at any point, it will fall back to doing the operation in a synchronous
fashion with this patch if the buffer is shared and currently busy.
It might be possible to later detect that a buffer has become un-shared;
however, this is outside of the scope of this bugfix patch.
v2: Do not disable buffer busyness tracking for shared buffers.
Fixes: e9c41b32 ("gallium/u_threaded: add buffer lists - tracking of buffers referenced by tc")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 8f159a8576efbb7bb3755d215a54b87c4c99a0d2)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18349>
-
1ecc6cc1
by Dylan Baker at 2022-09-29T10:40:39-07:00
.pick_status.json: Update to e5631add0d1c97da4686f474735d45705facd308
-
5a4a4f8f
by Lionel Landwerlin at 2022-09-29T10:40:39-07:00
anv: remove HDC flush from invalidate bits
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a49b145e8d59 ("anv: Replace DC Flush with HDC Pipeline Flush")
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
(cherry picked from commit 0926ac42cbdf7191010d1461f1e38e75b6983ed8)
-
71b0b79e
by nyanmisaka at 2022-09-29T10:40:39-07:00
gallium: Do not include offscreen winsys if glx is disabled
Offscreen winsys introduced in Mesa 22.2 depends on glx(dri) and libswkmsdri.
The error message is:
/usr/bin/ld: src/gallium/auxiliary/libgalliumvlwinsys.a.p/vl_vl_winsys_dri_vgem.c.o: in function `vl_vgem_drm_screen_create':
vl_winsys_dri_vgem.c:(.text.vl_vgem_drm_screen_create+0x28): undefined reference to `kms_dri_create_winsys'
Fixes: 31dcb396 (gallium/vl: Add software winsys and offscreen winsys)
Cc: mesa-stable
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18843>
(cherry picked from commit ae201bcd42a7b5efe5b21270e081d242d2a97aad)
-
62ed7e99
by Mike Blumenkrantz at 2022-09-29T10:40:39-07:00
zink: add a draw barrier when unbinding a sampler-bound fb surface
this is guaranteed to need some kind of layout change, so ensure the
barrier actually happens
cc: mesa-stable
SoroushIMG <soroush.kashani@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18855>
(cherry picked from commit 5bc19dd5f7d329b786d005e9166ca59544347ce9)
-
9d1f0e8c
by Dylan Baker at 2022-09-29T10:40:39-07:00
.pick_status.json: Mark 5af6dad179dc4140964ab444a2a7f8cf8d16c561 as denominated
-
3aa0a2a7
by Dylan Baker at 2022-10-04T14:54:10-07:00
.pick_status.json: Update to 68f3c38c8011e3ff304a67b6ffb33fd21ee65b0c
-
1cfd9ec3
by Mike Blumenkrantz at 2022-10-04T14:54:24-07:00
glthread: handle DeleteBuffers(n=-1) gracefully
this is a valid error condition
cc: mesa-stable
fixes:
GTF-GL46.gtf21.GL2FixedTests.buffer_objects.buffer_objects
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18856>
(cherry picked from commit 004c5b60caa3a58177be62e1f4f9eb7388979126)
-
1ff57b2c
by Mike Blumenkrantz at 2022-10-04T14:54:25-07:00
zink: fix/improve handling for multi-component bitfield ops
the original improvement for this correctly handled cases where
the offset/count values were swizzled with .xxxx, but it was broken
for any other swizzling
this adds a nir pass to more easily manipulate the swizzles and rewrite
the multi-component ops as multiple ops with the swizzled params
fixes #6697
Fixes: 8e97f51c676 ("zink: handle swizzled offset/count values for shader bitfield ops")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18706>
(cherry picked from commit af775f842cad7eff4deaff9a476a3702970b5645)
-
642b4d6b
by Mike Blumenkrantz at 2022-10-04T14:54:25-07:00
pipe-loader: fix zink driinfo header path
this feels like a compiler bug, but somehow just specifying the
shorter path ends up with a broken/partial header include
Fixes: d760a9151b7 ("gallium: Learn about kopper")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18858>
(cherry picked from commit 8da9e65500819b2e430028b96b1f68c99f220bdd)
-
9566c440
by Rhys Perry at 2022-10-04T14:54:26-07:00
aco: fix VMEMtoScalarWriteHazard s_waitcnt mitigation
It doesn't make sense for a "s_waitcnt vmcnt(0)" to affect a store or DS
instruction.
LLVM checks for "s_waitcnt vmcnt(0) lgkmcnt(0) expcnt(0)" but ignores
s_waitcnt_vscnt (which I assume is a bug).
No fossil-db changes.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: bcf94bb933e ("aco: properly recognize that s_waitcnt mitigates VMEMtoScalarWriteHazard")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18270>
(cherry picked from commit 2bd16256a6a8f830dc43aa7224879d11edb9583a)
-
4d6fe87a
by SoroushIMG at 2022-10-04T14:54:26-07:00
zink: fix nir_op_unpack_64_2x32 emission
Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18863>
(cherry picked from commit d2e2b9bb801c2eea99fafc54b24b15e9631ca937)
-
bdc71b81
by Gert Wollny at 2022-10-04T14:54:29-07:00
nir_lower_to_source_mods: Don't sneek in an abs modifier from parent
If the abs source modifiers is not supported for the current
instruction because it is an instruction with three sources we
may still see a parent mov that has the `abs` modifier. In this
case we must not propagate that abs modifier from that parent
instructions.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7350
Fixes: cd73b6174b093b75f581c3310bf784bed7c74c1f
nir/lower_to_source_mods: Stop turning add, sat, and neg into mov
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18902>
(cherry picked from commit 9ebe893a61f30c2b1bb24e7870a2ba314356a4fd)
-
f79525dd
by Connor Abbott at 2022-10-04T14:54:29-07:00
ir3/analyze_ubo_ranges: Account for reserved consts better
It turns out that the ir3_setup_const_state() already includes reserved
consts, so we were accidentally counting it twice. This makes us use
less consts, and if there are enough reserved consts can make it go
negative and wrap around. Fix this while also making sure the previous
bug remains fixed.
Fixes: 8cb1deded60 ("ir3/analyze_ubo_ranges: Account for reserved consts")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18840>
(cherry picked from commit dcab399a173f2ab99f408e2db1bafc114c29cfd9)
-
d4d47ef6
by Dylan Baker at 2022-10-04T14:54:33-07:00
.pick_status.json: Mark ff933485b7e328c5041050d5e41a2dd28a032a92 as denominated
-
3ba10f96
by Dylan Baker at 2022-10-11T11:50:29-07:00
docs: remove new_features.txt
which was accidentally not commit before.
-
d8021bbb
by Dylan Baker at 2022-10-11T11:53:31-07:00
docs: add release notes for 22.2.1
-
21e7392e
by Dylan Baker at 2022-10-11T11:53:31-07:00
VERSION: update to 22.2.1