Alyssa Rosenzweig
eb1112ae7a
lvp: Use common blend/logicop translation
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Alyssa Rosenzweig
31001c6184
vulkan: Add helpers for blend enum translation
...
Vulkan drivers that use nir_lower_blend need to translate Vulkan enums to the
common (non-Vulkan) versions used in nir_lower_blend. We don't need to duplicate
that boilerplate in every VK driver that uses nir_lower_blend, move panvk's
versions to common code so we can use them in agxv. I suspect powervr wants this
too.
It might be useful to also share the logic to translate vk_color_blend_state
to nir_lower_blend_options wholesale, but panvk wouldn't use it and agxv is
downstream so it wouldn't have any in-tree users. So I'll keep that part
vendored (for now). For now, let's share the easy win of the enum translation.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Alyssa Rosenzweig
521d596d27
util/blend: Add helpers for normalizing inverts
...
To avoid duplicating piles of cases.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Alyssa Rosenzweig
5764071f95
gallium,util: Move util_blend_dst_alpha_to_one
...
PanVK will use this too.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Alyssa Rosenzweig
02868c9e77
gallium,util: Move blend enums to util/
...
For sharing across the tree.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Alyssa Rosenzweig
b0313d9f09
gallium/trace: Collect enums from multiple files
...
We're going to do some code motions out of p_state.h so the one file assumption
will fail. relax it.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24076 >
2023-07-13 21:03:32 +00:00
Dylan Baker
cef578c5fc
docs: truncate feature list for 23.3-devel
...
Which I forgot to do when branching for 23.2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24143 >
2023-07-13 20:55:23 +00:00
Connor Abbott
7220deff90
afuc: Rework and significantly expand README.rst
...
This hasn't been updated since the a5xx days, and we've learned much
more since then. I've tried to expand it from a random collection of
notes to a more complete guide to explaining how to read the firmware
and understand the various tricks it uses to make code more compact.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24125 >
2023-07-13 19:24:28 +00:00
Amber
426708796c
turnip: Add debug option to allow non-conforming features.
...
This is because we still may want to be able to expose vulkan 1.3
on some devices that technically do not support it, for instance
the adreno 610 has everything required except multiview, which is
not essential for most games.
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
576a4e85f0
freedreno: Add support for devices not supporting double thread size.
...
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
0f57d7c0c3
ir3: handle non-uniform case for atomic image/ssbo intrinsics
...
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
7373ab7f95
freedreno, turnip: set correct reg_size_vec4 for a6xx_gen1_low
...
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
49ed69369e
turnip: make sampler_minmax support configurable.
...
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
f78bce1b59
turnip: Add support for devices not supporting double thread size.
...
On these devices the actual thread size for compute shaders seems to be
controlled by REG_A6XX_HLSQ_FS_CNTL_0 rather than the CS-related
register.
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Amber
9d2fd39f84
ir3: make wave_granularity configurable
...
Signed-off-by: Amber Amber <amber@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Danylo Piliaiev
e58f28f3da
ir3: Make FS tex prefetch optimization optional
...
a610 and friends seem not to have tex prefetch.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Danylo Piliaiev
9ed32b386a
turnip: Make multiview support configurable per generation
...
a610 and similar models don't have HW support for multiview,
proprietary driver unrolls the drall calls instead.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Danylo Piliaiev
3d299bc7ef
freedreno: Add A605, A608, A610, A612 GPUs definition
...
While we tested a610, a605/a608 are added by observing traces being same
to a610.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Danylo Piliaiev
02ea3e4e10
freedreno,turnip: Make VS input attr/binding count configurable
...
a610 and similar models have fewer VS inputs available.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:37 +00:00
Danylo Piliaiev
4a43ab3019
freedreno,turnip: Make CS shared memory size configurable
...
a610 and similar models have less shared memory size.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:36 +00:00
Danylo Piliaiev
05fffc7b25
freedreno,turnip: Make number of VSC pipes configurable
...
a610/a608 has less pipes, so we need to make it configurable.
In particular we need to program all of the VSC_PIPE_CONFIG_REG[n]
rather than leaving garbage values for the unused pipes. Pointing
multiple VSC pipes at the same bin makes the hw angry.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:36 +00:00
Konrad Dybcio
0814c2c7a6
freedreno: Set magic writes per-GPU, using existing data
...
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:36 +00:00
Danylo Piliaiev
c8ce3e5096
freedreno, turnip: Clarify some RB_CCU_CNTL fields
...
There is no .gmem field, there is a ccu color cache size field
which tells the size as a fraction of depth cache used in direct
rendering.
There is also GMEM_FAST_CLEAR_DISABLE flag which is set on a608/a610.
Since these values will stop being the same between models,
make them configurable.
Credits to Connor Abbott for deciphering color cache size meaning.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20991 >
2023-07-13 18:06:36 +00:00
Lionel Landwerlin
67a8b70c57
anv: hide exec_flags selection inside the i915 backend
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24073 >
2023-07-13 17:12:26 +00:00
Sil Vilerino
f6dddcef79
util: Blake3 - Identify arm64ec as aarch64 instead of x64
...
ARM64EC is a new build target for Windows ARM64 devices for x64 support.
Currently that build flavor fails due to attempting to use x64 intrinsics.
This commit fixes it by changing the auto-detection to be aarch64
instead of x64 for arm64ec.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24119 >
2023-07-13 15:30:39 +00:00
Filip Gawin
6e87b277bd
crocus: Avoid fast-clear with incompatible view
...
Port of code from iris.
Original author: Nanley Chery
Helps with fast_color_clear@fcc-write-after-clear
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24135 >
2023-07-13 15:02:38 +00:00
Danylo Piliaiev
4fa02c5c8e
freedreno/cffdec: Decode CP_DRAW_AUTO
...
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24074 >
2023-07-13 12:44:45 +00:00
Pavel Ondračka
0a2a7bfd19
r300: update RV370 failures
...
This was missed in 0bf6dcb785
There is a loop which iterates over a temp array. NIR optimization
moves the real work out of the loop and what remains are just ALU ops
with undefs. So after converting undefs to zero, the ALU ops are
optimized out and DCE kills the loop. This is a good thing in
general and we don't fail the linking due to the loop presence.
However than we hit the shader constants and ALU limits later :-(
So from dEQP POW we go from NotSupported to Fail.
Fixes: 0bf6dcb785
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24134 >
2023-07-13 12:22:22 +00:00
Frank Binns
953c04ebd3
pvr: clang-format fixes
...
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24070 >
2023-07-13 10:23:32 +00:00
Jordan Justen
39f547381c
isl: Set MOCS to uncached for MTL stream-out
...
Without this change various OpenGL CTS tranform feedback tests were
failing.
Cc: 23.2 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-13 00:32:13 -07:00
Jordan Justen
fa47c82fbe
isl/dev: Add uncached MOCS value
...
Rework:
* Jordan: Add uncached for all platforms (Requested by Francisco)
* Jordan: Use gen7 & gen8 values suggested by Francisco
* Jordan: Fix IVB and CHV MOCS mistakes pointed out by Francisco
Cc: 23.2 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-13 00:32:13 -07:00
Jordan Justen
ef105f8cce
genxml/chv: Add MEMORY_OBJECT_CONTROL_STATE_CHV to document compared to BDW
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-13 00:32:09 -07:00
Jordan Justen
90535d7aef
genxml/hsw: Add additional MOCS field enumerations
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-13 00:32:05 -07:00
Jordan Justen
492b07625d
anv,iris,hasvk: Use ISL_SURF_USAGE_STREAM_OUT_BIT for setting stream-out MOCS
...
Cc: 23.2 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-12 23:47:25 -07:00
Jordan Justen
6b5082f5d5
isl: Add ISL_SURF_USAGE_STREAM_OUT_BIT
...
Cc: 23.2 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823 >
2023-07-12 23:47:03 -07:00
Helen Koike
0dc961645c
docs/ci: Add docs for EXTRA_LOCAL_PACKAGES
...
Add a section about reusing the CI scripts for other projects.
Signed-off-by: Helen Koike <helen.koike@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23894 >
2023-07-13 01:06:29 +00:00
Helen Koike
a3d10300b0
ci: add EXTRA_LOCAL_PACKAGES to apt-get install
...
This can make it more convenient for other projects to reuse these
scripts.
Signed-off-by: Helen Koike <helen.koike@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23894 >
2023-07-13 01:06:29 +00:00
Helen Koike
afaefb20f3
ci: re-add EXTRA_LOCAL_PACKAGES to rootfs
...
This variable was removed on commit
848f59deda
when file `create-rootfs.sh`
was splitted.
Re-add it.
This can make it more convenient for other projects to reuse these
scripts.
Signed-off-by: Helen Koike <helen.koike@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23894 >
2023-07-13 01:06:29 +00:00
David Heidelberg
29de652060
ci/freedreno: update a530 flakes
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24132 >
2023-07-13 02:23:16 +02:00
Dylan Baker
6b64c27a97
docs: Update release calendar for 23.2.0-rc1
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24131 >
2023-07-12 23:08:06 +00:00
Faith Ekstrand
c136a22b60
nv50/ir: Convert to new-style NIR registers
...
Shader-db results on Turing:
total inst in shared programs : 11121531 -> 11121458 (-0.00%)
total gpr in shared programs : 1848287 -> 1848425 (0.01%)
total ugpr in shared programs : 0 -> 0 (0.00%)
total local in shared programs : 27200 -> 27200 (0.00%)
total shared in shared programs : 236476 -> 236476 (0.00%)
total bytes in shared programs : 177944496 -> 177943328 (-0.00%)
total cached in shared programs : 0 -> 0 (0.00%)
inst gpr ugpr local shared bytes cached
helped 470 50 0 0 0 470 0
hurt 327 197 0 0 0 327 0
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24110 >
2023-07-12 22:49:27 +00:00
Yiwei Zhang
a151d26513
venus: refactor query feedback cmd record
...
Now copy and reset are similar enough to unify.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24130 >
2023-07-12 22:32:45 +00:00
Yiwei Zhang
ed79b30639
venus: add a missing barrier before copying query feedback
...
The 1st sync scope of vkCmdCopyQueryPoolResults is not sufficient to
cover transfer writes against query feedback buffer. We must ensure
ordering against prior query reset cmd where the feedback buffer fill
gets injected.
Fixes: de4593faa1
("venus: add query pool feedback cmds")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24130 >
2023-07-12 22:32:45 +00:00
Mohamed Ahmed
c4c258e19e
vulkan/util: Use ycbcr_info for multiplane helpers in vk_format.c
...
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Acked-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24096 >
2023-07-12 21:39:41 +00:00
Mohamed Ahmed
d5b6edec0f
vulkan/util: Support VK_EXT_ycbcr_2plane_444_formats color formats in vk_format.c
...
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Acked-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24096 >
2023-07-12 21:39:41 +00:00
Mohamed Ahmed
c263e5307f
vulkan/util: Support 10-bit and 12-bit color formats in ycbcr_info in vk_format.c
...
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Acked-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24096 >
2023-07-12 21:39:41 +00:00
Yiwei Zhang
7b44880e3e
venus: ensure consistency of query overflow behavior
...
Fixes: e6cffa1f0e
("venus: use feedback for vkGetQueryPoolResults")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24123 >
2023-07-12 21:18:06 +00:00
Yiwei Zhang
c55d43df04
venus: handle query feedback creation failure
...
Fixes: e6cffa1f0e
("venus: use feedback for vkGetQueryPoolResults")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24123 >
2023-07-12 21:18:06 +00:00
Friedrich Vock
d810d67a8c
radv/ci: Set DRIVER_NAME in LAVA raven vkcts jobs
...
Some CTS tests work with RADV, but take a very long time, making
deqp-runner trigger timeout failures. These tests are supposed to be
skipped, so they're contained in radv-skips.txt. But without setting
DRIVER_NAME to "radv", deqp-runner.sh won't pick up that file.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24095 >
2023-07-12 20:30:51 +00:00
Eric Engestrom
bdaee9e09d
ci: avoid running hardware jobs if lint fails - now on Windows too!
...
I missed this in !23774 .
Fixes: a1c1cce9df
("ci: avoid running hardware jobs if there are already trivial issues")
Signed-off-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24121 >
2023-07-12 19:31:01 +00:00