Ian Romanick
66840b98e4
nir: ifind_msb_rev can only have int32 sources
...
Just like ifind_msb.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19042 >
2023-03-10 15:27:17 +00:00
antonino
29be4e9e9b
zink: fix stipple pattern in oblique lines
...
Stipple lines now appear correctly when they are oblique.
Previously the number of steps of the stipple counter between two vertices
was calculated as the euclidian distance between them in screen space, however
the length occupied by pixel along a line is only `1` for lines that are either
vertical or horizontal and will be anywhere between `1` and `sqrt(2)`
for other cases.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21290 >
2023-03-10 14:52:01 +00:00
Alyssa Rosenzweig
ee6785309e
agx: Handle indirect texture/samplers
...
Get the texture/sampler index from the texture/sampler_offset source (which
is an offset from 0 thanks to the lower_index_to_offset lowering) and feed it in
as corresponding 16-bit texture instruction sources.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21704 >
2023-03-10 14:14:42 +00:00
Alyssa Rosenzweig
e12bf97153
agx: Pack indirect texture/sampler handles
...
For indirect indexing into the binding table. Note this does not handle packing
the bindless forms, since that's a bit more involved.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21704 >
2023-03-10 14:14:42 +00:00
Erik Faye-Lund
30b456021c
docs/zink: fixup wording of the GL 4.6 requirements
...
Seems the copy-pasta was strong in this one. Whoops!
Fixes: 5deac5c156 ("docs: document zink GL 4.6 requirements")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21813 >
2023-03-10 14:02:07 +00:00
Erik Faye-Lund
d6ce7bc020
docs/zink: remove some trailing spaces
...
These went unnoticed until now, let's fix them.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21813 >
2023-03-10 14:02:07 +00:00
Erik Faye-Lund
33d7592489
docs/zink: use vk-feat role for features
...
This gives us links to the features, instead of just mentioning them.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21813 >
2023-03-10 14:02:06 +00:00
Erik Faye-Lund
923a41ac99
docs: implement new vk-feat role
...
This makes it easy to link to a specific Vulkan feature from the docs.
Useful for the Zink docs.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21813 >
2023-03-10 14:02:06 +00:00
Pino Toscano
9d42e31b54
symbols-check: support OSes based on GNU toolchain
...
Some of the symbols listed in PLATFORM_SYMBOLS are not only specific
to Linux, but rather specific to the GNU toolchain. Hence, use them
when inspecting ELF binaries produced by a GNU toolchain: this means
on Hurd ('GNU'), and on e.g. kFreeBSD ('GNU/kFreeBSD').
Signed-off-by: Pino Toscano <toscano.pino@tiscali.it >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21825 >
2023-03-10 13:25:48 +00:00
Mike Blumenkrantz
e5b29e6735
Revert "Revert "ci: disable mesa-swrast runner jobs""
...
This reverts commit 7ae0d9d2e8 .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21836 >
2023-03-10 12:37:56 +00:00
Eric Engestrom
e29772f134
v3dv: split out broadcom_shader_stage_to_gl() calls to improve readability
...
This is an inline function with a compile-constant switch, so I expect
the compiler wouldn't produce any better code like this, but for humans
it's easier to read when function calls are not embedded into other
function calls.
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21835 >
2023-03-10 10:38:43 +00:00
Eric Engestrom
f5d3d1e7ed
meson: inline gtest_test_protocol now that it's always 'gtest'
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21485 >
2023-03-10 07:20:29 +00:00
Eric Engestrom
a18f439f52
meson: allow feature options to take true/false to mean enabled/disabled
...
This reduces the pain of Meson having picked inconsistent value names.
See also https://github.com/mesonbuild/meson/pull/11279 where Meson devs
argue that allowing `foo=false` could be interpreted by users to mean
either `disabled` or `auto`, which I personally don't see.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21485 >
2023-03-10 07:20:29 +00:00
Eric Engestrom
049086cd58
meson: bump minimum version to 0.60
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21485 >
2023-03-10 07:20:29 +00:00
Sagar Ghuge
9a34b2ab0e
intel/compiler: Add swsb_stall debug option
...
When enabled, on gfx12 plus, we will add the sync nop instruction after
each instruction to make sure that current instruction depends on the
previous instruction explicitly.
This option will help us to get a hint if something is missing or broken
in software scoreboard pass.
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21797 >
2023-03-10 06:55:39 +00:00
Alyssa Rosenzweig
cdf63e6dce
agx: Fix clang-formatting
...
Not sure how this one slipped in.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21828 >
2023-03-10 06:33:01 +00:00
Emma Anholt
7ae0d9d2e8
Revert "ci: disable mesa-swrast runner jobs"
...
This reverts commit aef0f3efdf .
We've got a new set of runners now (mesa-swrast-4, 5, and 7 because
counting is hard)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21826 >
2023-03-10 04:04:59 +00:00
Lionel Landwerlin
5aec829f97
iris: trace frames with u_trace
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21648 >
2023-03-10 00:36:41 +00:00
Lionel Landwerlin
2cc9791cd3
docs: fix invalid link
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21648 >
2023-03-10 00:36:40 +00:00
Kenneth Graunke
dfe652fb03
intel/eu: Simplify brw_F32TO16 and brw_F16TO32
...
Now that we aren't using them on Gfx8+ we can drop a lot of cruft.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
c590a3eadf
intel/fs: Move packHalf2x16 handling to lower_pack()
...
This mainly lets the software scoreboarding pass correctly mark the
instructions, without needing to resort to fragile manual handling in
the generator.
We can also make small improvements. On Gfx 8LP-12.0, we no longer have
the restrictions about DWord alignment, so we can simply write each half
into its intended location, rather than writing it to the low DWord and
then shifting it in place.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
f5e5705c91
intel/fs: Use F32TO16/F16TO32 helpers in fquantize16 handling
...
I originally thought that we were intentionally emitting the legacy
opcodes here to make them opaque to the optimizer, so that it wouldn't
eliminate the explicit type conversions, as they're actually required
to do the quantization. But...we don't actually optimize those away
currently anyway. So...go ahead and use the helpers for consistency.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
44c6ccb197
Revert "intel/fs: Fix inferred_sync_pipe for F16TO32 opcodes"
...
With the previous patch, we no longer need to special case this, as we
emit a MOV with an HF source, rather than F16TO32 with an UW source,
on all platforms that need scoreboarding.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
309ec3725a
intel/fs: Use new F16TO32 helpers for unpack_half_split_* opcodes
...
This gets us a MOV at the IR level on Gfx8+ which should be more
optimizable than F16TO32. It also removes confusion about which
pipe which the instruction will run on.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
78bf53904e
intel/fs: Delete a TODO about using brw_F32TO16.
...
We can just use the new builder helpers to get the optimization
advantages of a MOV on Gfx8+ while also getting the necessary F32TO16
on Gfx7.x and yet not worry too hard about it.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
966995d911
intel/fs: Add builder helpers for F32TO16/F16TO32 that work on Gfx7.x
...
These take care of emitting the F32TO16/F16TO32 instructions on Gfx7.x
but otherwise just emit a type converting MOV on Gfx8+.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Kenneth Graunke
3864049184
intel/fs: Fix inferred_sync_pipe for F16TO32 opcodes
...
For converting half-float to float, we currently emit BRW_OPCODE_F16TO32
with a UW source, to match legacy Gfx7 behavior. In the generator, this
becomes a MOV with a HF source on Gfx8+. Unfortunately, this UW source
confuses the scoreboarding pass into thinking it's an integer source,
leading to incorrect SWSB annotations on Alchemist.
We should ultimately fix the IR to stop being so...legacy...here, but
this is the simplest fix for stable branches.
Fixes misrendering in Elden Ring and likely Sekiro: Shadows Die Twice.
Cc: mesa-stable
Tested-by: Chuansheng Liu <chuansheng.liu@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8018
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8375
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783 >
2023-03-09 23:26:17 +00:00
Mark Janes
4978db6b9e
intel: use generated workaround helpers for Wa_1409600907
...
Wa_1409600907 was enabled for gen12+. It should not be applied for
platforms after gen12.0. Use generated helpers to ensure application
to all relevant platforms.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21743 >
2023-03-09 22:56:51 +00:00
Chia-I Wu
5691b10b0f
radv: set RADEON_FLAG_GTT_WC for external mem on vram
...
We used to set RADEON_FLAG_GTT_WC when wsi_info is set. This changes it
to set the flag for any external mem on vram, extending the logic for
apps using external memory directly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21803 >
2023-03-09 22:21:09 +00:00
David Heidelberg
6a1be0fb95
ci/weston: add background PID
...
Needed for process tracking for LAVA.
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Daniel Stone <daniels@collabora.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21711 >
2023-03-09 21:06:16 +00:00
David Heidelberg
5052185039
ci/weston: before testing, verify that XWayland is really running
...
When Xorg already running, Weston XWayland should pick DISPLAY=:1
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Daniel Stone <daniels@collabora.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21711 >
2023-03-09 21:06:16 +00:00
David Heidelberg
675f757ffb
ci/lava: implement the priority
...
Before: kernelci 38; Mesa3D 75
Priority now:
- 38 ‒ kernelci
- 40 ‒ after merge and performance
- 50 ‒ user runs
- 75 ‒ marge-bot (MUST be prioritized)
Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Reviewed-by: Daniel Stone <daniels@collabora.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21812 >
2023-03-09 20:28:07 +00:00
Daniel Stone
ae893089e9
ci/radv: Lower stoney CTS load
...
CTS runs on stoney are currently taking ~20min to complete, which seems
to have begun with the upgrade to CTS 1.3.5.0. This is a bit too long in
and of itself, but it means that - assuming zero contention - a job that
has to be retried because the machine hung can take 40 minutes.
Aim to drop this to 15min turnaround by lowering the overall fraction
from 1/8th of the CTS to 1/11th.
As the jobs we run have been reshuffled, this adds a lot more expected
fails. As most of them categorise easily into patterns, group the
failures together in the file. Non-strict wide lines has passed since we
last ran it; the other failures all group into existing classes seen
for a long time.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21791 >
2023-03-09 19:34:58 +00:00
Daniel Stone
f07c69d8b6
ci/zink: Add flake seen in the wild
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21820 >
2023-03-09 19:15:13 +00:00
David Heidelberg
aef0f3efdf
ci: disable mesa-swrast runner jobs
...
Temporarily.
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21815 >
2023-03-09 18:01:09 +00:00
Daniel Stone
6f1aa8cfc1
ci/fdno: Add a618 Vulkan flakes
...
It looks like descriptors are generically a bit broken, which takes out
a massive number of tests periodically.
The pipeline-library tests also have some unknowable issues.
cf. #8219
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21740 >
2023-03-09 14:47:57 +00:00
Georg Lehmann
13ff4a5f64
aco: use bitfield_array for temporary neg/abs/opsel
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21766 >
2023-03-09 14:15:14 +00:00
Georg Lehmann
d0eebb0e8b
aco: access neg/abs as int in usesModifiers
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21766 >
2023-03-09 14:15:14 +00:00
Georg Lehmann
828aff2a2d
aco: use array indexing for opsel/opsel_lo/opsel_hi
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21766 >
2023-03-09 14:15:13 +00:00
Georg Lehmann
a47c3f84fb
aco: use integer access for neg_lo/neg_hi
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21766 >
2023-03-09 14:15:13 +00:00
Georg Lehmann
60cd3ba39f
aco: copy abs/neg with assignment
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21766 >
2023-03-09 14:15:13 +00:00
Tapani Pälli
5fdbc4a23e
intel/isl: disable TILE64 for YCRCB formats
...
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21723 >
2023-03-09 13:50:39 +00:00
Daniel Stone
fad9c69e42
ci/radv: Drop raven quick_shader load
...
It currently takes ~21 minutes to complete. That's not quick.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21793 >
2023-03-09 09:56:31 +00:00
Eric Engestrom
a19739f1b0
v3dv/ci: add a test to the known failures
...
New test since the 1.3.5 update, and running it on older mesa it would
have always failed, so it's not a regression
-> let's just mark it as a known failure
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21792 >
2023-03-09 09:19:21 +00:00
Emma Anholt
ec513270e3
zink: Pass the cmdbuf to the end of the marker, too.
...
Otherwise the end wanders off to some unrelated cmdbuf.
Fixes: 271ebdd735 ("zink: pass cmdbuf to debug marker begin")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21799 >
2023-03-09 06:53:37 +00:00
David Heidelberg
11a4e10fe2
ci/zink: fixup the zink-lvp job
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8501
Fixes: 4cc0cec473 ("ci: implement unified sections")
Reviewed-by: Emma Anholt <emma@anholt.net >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21796 >
2023-03-09 06:27:39 +00:00
antonino
27c8d6ca7b
drirc: set zink_emulate_point_smooth for Quake II
...
Quake II uses GL_POINT_SMOOTH to render particles.
Zink currently requires `zink_emulate_point_smooth` to support that feature.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21731 >
2023-03-09 04:38:24 +00:00
antonino
ffe36abf7c
zink: handle point_smooth emulation
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21731 >
2023-03-09 04:38:24 +00:00
antonino
3a59b2a670
nir: handle output beeing written to deref in nir_lower_point_smooth
...
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21731 >
2023-03-09 04:38:24 +00:00
antonino
4b07182c8c
zink/nir_to_spirv: add support for nir_intrinsic_load_point_coord
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21731 >
2023-03-09 04:38:24 +00:00