Mike Blumenkrantz
ee2fb2f2f3
zink: split slot map between regular varyings and patch
...
these otherwise were using the same mapping
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:44 +00:00
Mike Blumenkrantz
66eb26c00f
zink: move 'reserved' into io assign struct
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:44 +00:00
Mike Blumenkrantz
9ca0c8cbae
zink: unify io assignment
...
this was the same in two places but with extra pre-checks in one
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
c6af91a968
zink: track masks of io locations used during linking
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
8f2e56350a
zink: pass a struct through io assignment functions
...
this is more easily extensible
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
42f2719a88
zink: outdent assign_consumer_var_io()
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
737de5573f
zink: outdent assign_producer_var_io()
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
613c7c1586
zink: minor tweaks to shader io assignment
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Mike Blumenkrantz
18f9f17be5
zink: make unassigned io variables unreachable
...
this should no longer be possible to hit
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884 >
2024-05-16 12:33:43 +00:00
Eric Engestrom
390ac5ba14
mailmap: add entry to unify Roman Stratiienko's contributions
...
$ git shortlog -sne --author 'Roman Stratiienko'
65 Roman Stratiienko <r.stratiienko@gmail.com >
7 Roman Stratiienko <roman.stratiienko@globallogic.com >
4 Roman Stratiienko <roman.o.stratiienko@globallogic.com >
3 Roman Stratiienko <roman.stratiienko@nure.ua >
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29237 >
2024-05-16 12:05:27 +00:00
Collabora's Gfx CI Team
75931d6e68
Uprev Piglit to 8a6ce9c6fc5c8039665655bca4904d5601c6dba0
...
7aa7bc1b01...8a6ce9c6fc
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29050 >
2024-05-16 10:15:17 +00:00
Pierre-Eric Pelloux-Prayer
0f25cef8aa
radeonsi: add testmemperf mem bandwidth test
...
This commit adds a simple test to measure bandwidth to/from memory
domains.
It's using the winsys functions, not the driver ones, to be able
to control the domains and flags.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:19 +00:00
Pierre-Eric Pelloux-Prayer
cd9f6f9e85
radeonsi: allocate sqtt and spm buffers in GTT
...
This makes reading from it much, much faster.
It would be better to allocate them in VRAM, and do a copy
before reading them, but for now using GTT will do the trick.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:19 +00:00
Pierre-Eric Pelloux-Prayer
afd2cbeb28
radeonsi/sqtt: use si_shader_binary_upload_at to reupload shaders
...
This allows to support ACO + sqtt.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:19 +00:00
Pierre-Eric Pelloux-Prayer
38c6400167
radeonsi: add new si_shader_binary_upload_at method
...
Same as si_shader_binary_upload, but it uploads to the existing
shader->bo buffer at the specified offset.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:18 +00:00
Pierre-Eric Pelloux-Prayer
5794a86f19
radeonsi/sqtt: support sqtt buffer auto-resizing
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:18 +00:00
Pierre-Eric Pelloux-Prayer
316fff7d41
radeonsi/sqtt: cleanup si_sqtt_add_code_object a bit
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:18 +00:00
Pierre-Eric Pelloux-Prayer
e32dddf7ab
radeonsi/sqtt: use ac_sqtt_get_shader_mask for spm counters
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073 >
2024-05-16 09:51:18 +00:00
Konstantin Seurer
99a6511775
gitlab: Reference hang debugging documenttion
...
It should help the user with setting up UMR, which adds a lot of useful
information to the hang report.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29213 >
2024-05-16 09:47:53 +00:00
Yusuf Khan
586bca76dd
nvk: remove NVK_MME_COPY_QUERIES
...
Its not being used by anything, and it gets sent to the GPU, remove
it.
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29030 >
2024-05-16 08:14:30 +00:00
Mary Guillemard
12fa8d749a
nak: Migrate sph.rs to use SPH headers defintion
...
We still rely on bitfields for attributes as it map nicely.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034 >
2024-05-16 07:56:30 +00:00
Mary Guillemard
8fda488aec
nak: Set SPH version to 4 on SM75+
...
The hardware doesn't check it but we should avoid possible mismatch.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034 >
2024-05-16 07:56:30 +00:00
Mary Guillemard
170b09790a
nouveau: nvidia_header: Add AMPERE_B class generation
...
We only have SPHv4 definition for Ampere, add parsing of it.
Also make vk_push_print supports it.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034 >
2024-05-16 07:56:30 +00:00
Arthur Huillet
784407f932
nvk: generate Rust bindings from SPH header files
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034 >
2024-05-16 07:56:30 +00:00
Arthur Huillet
f7d4e4ba2b
nvk: import SPH headers files from open-gpu-doc
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034 >
2024-05-16 07:56:30 +00:00
Chia-I Wu
a83c15654c
drm-shim: intercept access as well
...
Since libdrm commit 3bc3cca2 ("xf86drm: use drm device name to identify
drm node type"), drmGetMinorType uses access to get the node type and
causes amdgpu_device_initialize to fail with
DRM_SHIM: unhandled core DRM ioctl 0x5 (0xc0286405)
_amdgpu_device_initialize: amdgpu_get_auth (1) failed (-22)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29096 >
2024-05-16 07:18:14 +00:00
Karol Herbst
53629b0a2d
rusticl: make use of new output_inline_wrapper meson.rust.bindgen feature
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265 >
2024-05-16 06:40:59 +00:00
Karol Herbst
3e3eab12d8
rusticl: bump meson req to 1.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265 >
2024-05-16 06:40:59 +00:00
Karol Herbst
86a11248a5
rusticl: bump bindgen req to 0.65
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265 >
2024-05-16 06:40:59 +00:00
Karol Herbst
c46cd101e1
rusticl: move mesa_version_string out of the inline wrapper
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265 >
2024-05-16 06:40:59 +00:00
Karol Herbst
d2dfb3350f
rusticl: merge rusticl_nir and rusticl_mesa_bindings_inline_wrapper targets
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25265 >
2024-05-16 06:40:59 +00:00
Yiwei Zhang
2740d92e3d
vulkan: drop redundant core props query and copy helpers
...
The last client, venus, has stopped using those either.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Yiwei Zhang
374a14ce4c
venus: define VN_SET_VK_PROPS(_EXT) to simplify vk props init
...
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Oskar Viljasaar
3c152a6e5d
venus: Use common physical device properties
...
This lets us delegate the GPDP2 entrypoint to common code.
This also lets us delete struct vn_physical_device_properties,
as it is redundant with struct vk_properties present in the runtime.
Move the properties present in vn_physical_device_properties to the
local_devices struct used to query the host device properties, so we can
still get and fill those properties.
Replace accesses to struct vn_physical_device with accesses to
struct vk_properties filled in at device initialization time.
v2: rebase and a few fixups (zzyiwei)
- rely solely on vk props for final props sanitizations
- set vk11 props behind vk 1.2 condition
- set default pci props if forwarded
- set extension props based on extension support
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Oskar Viljasaar
f04bc27fe1
vulkan: add a property struct setter function
...
This takes in a (VkBaseInStructure *), checks for its type, casts it
into the right property struct and then copies its fields over the right
way to `struct vk_properties`.
v2: a few fixups (zzyiwei)
- add missing brackets required by clang
- fix some indents
- optimize to aovid deep-copying VkPhysicalDeviceProperties
- update to use DETECT_OS_ANDROID as suggested
- cast to avoid -Wswitch for Android struct beyond VkStructureType
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Yiwei Zhang
eb9a394e3c
venus: move props sanitization to a separate helper
...
So the main init properties function is clean. Also avoid giving any
sort of sane value for framebufferIntegerColorSampleCounts when we don't
query from 12 props directly, since the client side won't query that in
that case.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Yiwei Zhang
dceb1b0c4d
venus: move custom props fill from GPDP2 to props init
...
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Yiwei Zhang
0197924d63
venus: directly use vk drm and pci props in renderer info
...
We don't have to fill sType or pNext, and the default renderer info has
been zero-init already.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Reviewed-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
Yiwei Zhang
b1e2293f8c
vulkan: cast to avoid -Wswitch for Android struct beyond VkStructureType
...
Fixes: 1afbf0ba4a ("vulkan/properties: support Android in the property generator")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180 >
2024-05-16 01:58:14 +00:00
David Rosca
c522848d5a
radeonsi: Update buffer for other planes in si_alloc_resource
...
The buffer is shared with all planes, so it needs to be updated
in all other planes. This is already done in si_texture_create_object
when creating the buffer, but it was missing when reallocating
in si_texture_invalidate_storage.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11155
Cc: mesa-stable
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29216 >
2024-05-16 01:34:15 +00:00
Faith Ekstrand
ec90da3c76
nvk: Go wide for query copies
...
There's no reason why we're doing a single invocation and a loop in the
shader. We may as well let it parallelize on the off chance that
there's more than a few queries to copy.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29231 >
2024-05-16 00:49:08 +00:00
Faith Ekstrand
ce0da9ee97
nvk: Fix misc. whitespace and style issues
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29231 >
2024-05-16 00:49:08 +00:00
Roman Stratiienko
b0bba26f04
v3dv/android: Migrate ANB and AHB to use common helpers
...
Change-Id: I28bfeaa93b2eacb353ea46e5e91cf2a2ae774067
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com >
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29059 >
2024-05-16 00:27:24 +00:00
Eric Engestrom
3facbc0cd3
docs: update calendar for 24.1.0-rc4
...
And add -rc5/final for next week.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29229 >
2024-05-15 23:15:50 +00:00
Francisco Jerez
eebc4ec264
intel/brw/xe2+: Round up spill/unspill data size to nearest reg_size multiple.
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:52 +00:00
Francisco Jerez
50daf161f4
intel/brw/xe2+: Lower 64-bit integer uadd_sat.
...
Fixes failures of CTS tests that currently end up emitting 64-bit
integer ADDs with saturation, which isn't supported by the hardware.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:52 +00:00
Francisco Jerez
15a10786e3
nir: Add option to lower 64-bit uadd_sat.
...
C.f. 16be909936 . Intel Xe2 won't
support saturation for 64-bit integer addition, regardless of
signedness.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:51 +00:00
Francisco Jerez
4bb5b25e53
intel/xe2+: Enable native 64-bit integer arithmetic.
...
Note that some previously-supported 64-bit integer operations have
been removed from the hardware, so we need to instruct NIR to lower
them.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:51 +00:00
Francisco Jerez
8be9f00d84
intel/brw/xe2+: Lower 64-bit SHUFFLE and CLUSTER_BROADCAST.
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:51 +00:00
Francisco Jerez
6261f4d361
intel/brw/xe2+: Fix 64-bit subgroup scan intrinsics not to rely on SEL instructions.
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283 >
2024-05-15 17:16:51 +00:00