Samuel Pitoiset
97962f2a34
radv: mark some formats as unsupported on GFX8/CARRIZO
...
Ported from RadeonSI, untested.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29288 >
2024-05-21 06:34:06 +00:00
Samuel Pitoiset
e384b28805
radeonsi: reject some texture formats but only on GFX8/CARRIZO
...
Not sure why this check was missing.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29288 >
2024-05-21 06:34:06 +00:00
Samuel Pitoiset
95122a1cf7
ac,radv,radeonsi: introduce a helper to build a FMASK descriptor
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29259 >
2024-05-21 06:10:32 +00:00
Juston Li
e1b4b399ce
zink: disable cpu_storage for PIPE_USAGE_STREAM
...
See 8af8dc97bc
("tc: do a GPU->CPU copy to initialize cpu_storage")
On zink, initializing cpu_storage that requires a GPU->CPU copy is
particularly expensive; in addition to a sync, the buffer_map call to
copy the GPU data submits a batch and has to wait for that batch.
Take the PIPE_USAGE_STREAM hint and disable using cpu_storage on
resources that "will be modified once and used at most a few times"
where the benefit of cpu_storage is outweighed by the heavy init time.
Signed-off-by: Juston Li <justonli@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29294 >
2024-05-20 22:59:42 +00:00
Rob Clark
01bac643f6
freedreno/ir3: Fix ldg/stg offset
...
Basically a revert (but not a clean one) of commit 60686d4146
("ir3/a6xx: fix ldg/stg of ulong2 and ulong4 data"). The offset
is a byte offset, not a dword offset.
Backport note: Prior to commit 513fa1873c
("ir3/a7xx: Fix
load_global_ir3 with immediate offset") you could instead just revert
the original commit.
Fixes: 60686d4146
ir3/a6xx: ("fix ldg/stg of ulong2 and ulong4 data")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11169
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29228 >
2024-05-20 21:24:53 +00:00
Mike Blumenkrantz
23488790c1
zink: remove dgc debug mode
...
there is alternative testing available now
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29289 >
2024-05-20 19:47:39 +00:00
Mike Blumenkrantz
e093107115
lavapipe: lvp_indirect_command_layout -> lvp_indirect_command_layout_nv
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29293 >
2024-05-20 19:27:33 +00:00
Mike Blumenkrantz
aaa3f37ae5
lavapipe: plumb print_cmds through NV DGC
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29293 >
2024-05-20 19:27:33 +00:00
Mike Blumenkrantz
42e3d580cc
lavapipe: split out DGC into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29293 >
2024-05-20 19:27:33 +00:00
Mike Lothian
3be436830e
ac/llvm: Remove global access ops handling
...
They have been lowered in nir
v2: Keep the _amd versions
v3: Fix if's with removed ops
Signed-off-by: Mike Lothian <mike@fireburn.co.uk >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29280 >
2024-05-20 18:41:20 +00:00
Mike Lothian
d2e80e57a3
radeonsi,aco: Run ac_nir_lower_global_access pass
...
This allows rusticl to run under radeonsi when using ACO
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11179
Signed-off-by: Mike Lothian <mike@fireburn.co.uk >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29280 >
2024-05-20 18:41:20 +00:00
Dylan Baker
46644ba371
meson: use glslang --depfile argument when possible
...
This reduces the amount of manual dependency tracking developers need to
do. This is turned on if glslang >= 11.3.0 is used, or 11.9.0 on
Windows, but otherwise the status quo is maintained. This means I have
not removed any use of `depend_files`. We could make make these hard
requirements and remove the use of `depend_files` too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28329 >
2024-05-20 17:34:17 +00:00
Samuel Pitoiset
32e43fe77c
ac,radv,radeonsi: add helper to know if a format is supported by DB
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Samuel Pitoiset
d2234adf59
ac,radv,radeonsi: add helper to know if a format is supported by CB
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Samuel Pitoiset
c62f86587f
amd/common: move some format related helpers to ac_formats.c
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Samuel Pitoiset
473559001f
radv: add radv_is_colorbuffer_format_blendable()
...
This will allow us to add a common helper to know if a format is
supported by CB.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Samuel Pitoiset
8f39e3a0f3
radv: stop checking the return value of ac_get_cb_number_type()
...
It can't be ~0U.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Samuel Pitoiset
e227f2cc72
radv: remove redundant check for VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 on GFX6-10
...
ac_get_cb_format() already returns V_028C70_COLOR_INVALID.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29291 >
2024-05-20 16:55:37 +00:00
Sil Vilerino
58ca4cee9e
d3d12: Video Encode - Fix inputs for older OS support query cap
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29290 >
2024-05-20 14:45:56 +00:00
Sil Vilerino
d8eb9fc9b4
nir: Mark variable as ASSERTED to fix unused variable warning treated as error
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29290 >
2024-05-20 14:45:56 +00:00
Samuel Pitoiset
07080c5fc5
radv: simplify creating gfx10 texture descriptors for sliced 3d/2d view of 3d
...
This will be easier to add a common helper between RADV and RadeonSI
for creating texture descriptors.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29269 >
2024-05-20 14:15:40 +00:00
Samuel Pitoiset
16952a179b
radv: allow 3d views with VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT
...
VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT allows to create 2d views
of a 3d image but nothing in the spec disallows to also create 3d views
when this flag is set.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29269 >
2024-05-20 14:15:40 +00:00
Samuel Pitoiset
96a9625866
ac,radv,radeonsi: add a function to get the color format endian swap
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:03 +00:00
Samuel Pitoiset
35c6b9c066
ac,radv,radeonsi: add a function to translate db format
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:03 +00:00
Samuel Pitoiset
934fc47822
radv: use PIPE_FORMAT in radv_translate_dbformat()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:03 +00:00
Samuel Pitoiset
7f0430bb36
ac,radv,radeonsi: add a function to translate colorswap
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:02 +00:00
Samuel Pitoiset
40428bd497
radv: use PIPE_FORMAT in radv_translate_colorswap()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:02 +00:00
Samuel Pitoiset
255e76b419
ac,radv,radeonsi: add a function to translate tex numformat
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:02 +00:00
Samuel Pitoiset
6030c876d0
radv: use PIPE_FORMAT in radv_translate_tex_numformat()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:02 +00:00
Samuel Pitoiset
2fef95f901
radv: stop checking the output value of radv_translate_tex_numformat
...
This function just never returns ~0.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265 >
2024-05-20 13:41:02 +00:00
Rhys Perry
418fed1805
aco: update VS prolog waitcnt for GFX12
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29225 >
2024-05-20 10:45:39 +00:00
Rhys Perry
f01cac835f
aco/stats: support GFX12 in collect_preasm_stats()
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29225 >
2024-05-20 10:45:39 +00:00
Rhys Perry
9e9cabd2fa
aco/waitcnt: support GFX12 in waitcnt pass
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29225 >
2024-05-20 10:45:39 +00:00
Rhys Perry
cadce0f3b7
aco: add GFX12 wait counters
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29225 >
2024-05-20 10:45:38 +00:00
Erico Nunes
c5e13af73c
ci: lima farm maintenance
...
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29285 >
2024-05-20 12:15:15 +02:00
Lionel Landwerlin
a31996ce5a
anv: switch to vk_device::mem_cache field for default cache
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11175
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29258 >
2024-05-20 08:23:48 +00:00
Alejandro Piñeiro
b2282e3a57
v3dv/meta_clear: use v3dv_renderpass used as parameter
...
emit_subpass_color_clear_rects and emit_subpass_ds_clear_rects is
receiving a v3dv_render_pass parameter pass, but then using
cmd_buffer->state.pass to access the current pass. All calls to those
methods are already initializing that parameter to that value.
This commit just uses the parameter. An alternative would be to remove
one of the parameters of the function call. I find this option
slightly more readable.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29218 >
2024-05-20 10:01:33 +02:00
Alejandro Piñeiro
07f3c37b9a
v3dv/meta_clear: take into account multiview for the custom clear pipeline caches
...
The resulting pipeline/shaders are different when we are using
multiview (for example, a geometry shader is injected in order to
support multiview).
Doesn't fix any CTS test run individually, but fixes some
dEQP-VK.draw.dynamic_rendering.primary_cmd_buff.multi_draw.overlapping*
CTS tests when run in a batch (using deqp-vk --deqp-caselist-file),
like:
dEQP-VK.draw.dynamic_rendering.primary_cmd_buff.multi_draw.mosaic.indexed_mixed.16_draws.stride_zero.10_instances.vert_only.single_view.offset_6_no_draw_id
dEQP-VK.draw.dynamic_rendering.primary_cmd_buff.multi_draw.overlapping.normal.one_draw.stride_zero.1_instance.vert_only.multiview.no_offset_no_draw_id
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29218 >
2024-05-20 10:01:33 +02:00
Alejandro Piñeiro
4f26303dbb
v3dv: add debug option to disable custom pipeline caches for meta operations
...
Included as a new option of the existing V3DV_ENABLE_PIPELINE_CACHE
environment variable.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29218 >
2024-05-20 10:01:33 +02:00
Timothy Arceri
795057d44e
glsl: move geom input array sizing to nir linker
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29256 >
2024-05-20 00:12:50 +00:00
David Heidelberg
08659a0baa
winsys/i915: depends on intel_wa.h
...
Prevent compilation failure due to not-yet generated intel_wa header.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11174
Cc: mesa-stable
Reviewed-by: Mark Janes <markjanes@swizzler.org >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29252 >
2024-05-18 15:36:13 +00:00
Mike Blumenkrantz
ffe54ca293
nir/linking: fix nir_assign_io_var_locations for scalarized dual blend
...
this would previously assign all scalar variables to the highest
driver location
cc: mesa-stable
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28753 >
2024-05-18 13:50:27 +00:00
Mike Blumenkrantz
e28061c502
nir/lower_aaline: fix for scalarized outputs
...
this otherwise was broken
cc: mesa-stable
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28753 >
2024-05-18 13:50:27 +00:00
Marek Olšák
b4bd380704
nir/algebraic: eliminate pack+unpack and unpack+pack pairs
...
A new NIR shader for AMD drivers will need this.
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29233 >
2024-05-17 22:04:00 +00:00
Faith Ekstrand
681acde6d3
nvk/meta: Save and restore set_dynamic_buffer_start
...
Fixes: e0d907f56f
("nvk: Rework descriptor set binding")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:18 +00:00
Faith Ekstrand
3e9b08f417
nvk: Refactor nvk_meta_begin() to use a desc helper
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:17 +00:00
Faith Ekstrand
6f0292f6b0
nvk: Add an NVK_MAX_SAMPLES #define
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:17 +00:00
Faith Ekstrand
ce0efbd175
nvk: Move and better document set_dynamic_buffer_start
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:17 +00:00
Faith Ekstrand
99f806b733
nvk: Advertise 32 descriptor sets
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:17 +00:00
Faith Ekstrand
54ce220f10
nvk: Store an nvk_buffer_address for each set in the root table.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29276 >
2024-05-17 21:41:17 +00:00