Faith Ekstrand
f36e5dbe60
nvk: Advertise VK_KHR_shader_float_controls2
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31170 >
2024-09-20 17:09:14 +00:00
Nanley Chery
b3882c4488
intel: Avoid no-op calls to anv_image_clear_color
...
Whenever we execute a fast-clear due to LOAD_OP_CLEAR, we decrease the
number of layers to clear by one. We then enter the slow clear function
and possibly exit without clearing if the layer count is zero.
Unfortunately, we've already compiled the shader for slow clears by the
time we exit. Skip the slow clear function if there are no layers to
clear.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31167 >
2024-09-20 16:34:37 +00:00
Nanley Chery
1c7fe9ad1b
anv: Support fast clears in anv_CmdClearColorImage
...
At least two game traces make use of this path: TWWH3 and Factorio.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31167 >
2024-09-20 16:34:37 +00:00
Nanley Chery
46d58583ff
anv: Move exec_ccs_op and exec_mcs_op higher up
...
The next patch will use them in anv_CmdClearColorImage().
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31167 >
2024-09-20 16:34:37 +00:00
Nanley Chery
03286117ef
anv: Move and rename anv_can_fast_clear_color_view
...
It's no longer specific to image views.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31167 >
2024-09-20 16:34:36 +00:00
Nanley Chery
44351d67f8
anv: Change params of anv_can_fast_clear_color_view
...
Expand the scope to more than just image views.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31167 >
2024-09-20 16:34:36 +00:00
Sil Vilerino
83fdbf8772
d3d12: Plumb H264/HEVC temporal_id from pipe params
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:42 +00:00
Sil Vilerino
1b66866275
d3d12: d3d12_video_encoder_references_manager_h264 to use FrameDecodingOrderNumber as h264Pic->slice.frame_num
...
Fixes: da2cbfe3bf ("d3d12: Video Encode H264 to use direct DPB from frontend")
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:42 +00:00
Sil Vilerino
96bf8f5a7d
d3d12: H264 Encode - Set SPS.gaps_in_frame_num_value_allowed_flag=1 when num_temporal_layers > 1
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:42 +00:00
Sil Vilerino
fc1a96822d
d3d12: Report H264/HEVC support for 4 max temporal layers
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:41 +00:00
Sil Vilerino
e0b84d4af1
d3d12: Support writing H264 temporal scalability prefix slice NAL on demand
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:41 +00:00
Sil Vilerino
06787d947d
d3d12: Support writing H264_SEI_SCALABILITY_INFO header on demand
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:41 +00:00
Sil Vilerino
5e22ddacb6
pipe: Add temporal_id to pipe_h26x_enc_dpb_entry
...
Reviewed-By: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31268 >
2024-09-20 15:50:41 +00:00
Samuel Pitoiset
80d60acb77
radv: only export KHR_video_maintenance1 with KHR_video_queue
...
It's required, otherwise dEQP-VK.info.device_extensions fails.
Fixes: b30462535b ("radv/video: add KHR_video_maintenance1 support")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31285 >
2024-09-20 15:26:28 +00:00
Mike Blumenkrantz
80344bdc7c
va: support zink on Windows
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31240 >
2024-09-20 13:25:18 +00:00
Mike Blumenkrantz
e079116cf0
vl: add Windows kopper support
...
this passes through the LUID when provided by the caller
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31240 >
2024-09-20 13:25:18 +00:00
Mike Blumenkrantz
f294b8262b
vl: rename/ifdef the x11 kopper functionality
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31240 >
2024-09-20 13:25:18 +00:00
Mike Blumenkrantz
62d93a53b4
zink: add screen create to match windows LUID
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31240 >
2024-09-20 13:25:18 +00:00
Juan A. Suarez Romero
f364c11a7d
v3d/ci: update expected results
...
Bring new fails and flakes due upreving the piglit version used in the
CI.
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31278 >
2024-09-20 12:53:06 +00:00
Samuel Pitoiset
cbae7792f9
radv: stop emulating GS invocations for legacy GS on RDNA1-2
...
This is basically a revert of !24231 . This emulation was introduced
to fix counting the number of GS invocations in cases it's VS/TES as
NGG (hw does that), but it's unnecessary.
Since the specification has been clarified and pipeline stat queries
are undefined for stages not present in pipelines.
See https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/6547
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31153 >
2024-09-20 12:28:08 +00:00
Daniel Stone
4682ea0e8b
ci: Make common rules common
...
None of the test jobs were referencing our 'common-rules', so we weren't
marking test jobs as manual when they should be.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Fixes: 07202111a6 ("ci/rules: make every job exist as manual in fork pipelines")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31270 >
2024-09-20 11:03:50 +00:00
Daniel Stone
9f21e90a0c
ci: Make token parsing more robust
...
Start by finding our known prefix, stripping only that off, then
validating that the rest of the data makes sense. This fixes certain
tokens which were erroneously getting rejected.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31270 >
2024-09-20 11:03:50 +00:00
Vignesh Raman
1f9f7ae112
ci/bare-metal: handle non-zero exit codes
...
The fastboot/poe/cros-servo scripts always exits with code 1,
regardless of the HWCI_TEST_SCRIPT's exit code. This commit
fixes these scripts to exit with the actual code returned by
the test.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31189 >
2024-09-20 10:29:39 +00:00
Vignesh Raman
9b762a3caf
ci/lava: update unit tests
...
Update unit tests to handle exit code in HWCI result output.
Co-developed-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31189 >
2024-09-20 10:29:39 +00:00
Vignesh Raman
b9cee06f9e
ci/lava: handle non-zero exit codes
...
The LAVA job submitter always exits with code 1, regardless
of the HWCI_TEST_SCRIPT's exit code. This commit fixes the
LAVA job submitter to exit with the actual code returned by
the test.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31189 >
2024-09-20 10:29:39 +00:00
Vignesh Raman
c6c011ee47
ci: include exit code in test result output
...
The HWCI result output now includes the exit code from
the test script to help in debugging. Also Update
B2C_JOB_SUCCESS_REGEX with the exit_code for ci-tron.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31189 >
2024-09-20 10:29:39 +00:00
Samuel Pitoiset
d8be265bd5
zink/ci: update expected list of failures since recent piglit uprev
...
These are missing.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31271 >
2024-09-20 09:46:23 +00:00
Boris Brezillon
15f18c862f
panvk: Hook up descriptor array bounds checking
...
The clamping on the array index was already implemented, but
lower_desc_ctx::add_bounds_checks was always false. Set it based on
the robustness state we're being passed.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31251 >
2024-09-20 09:12:42 +00:00
Boris Brezillon
0872c65f13
panvk: Pass the robustness state to nir_lower_descriptors()
...
Pass the robustness state to nir_lower_descriptors() instead of using
the default robustness set at device creation time.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31251 >
2024-09-20 09:12:42 +00:00
Boris Brezillon
e4613f8b23
panvk: Lower get_ssbo_size() on Valhall
...
On Valhall, the nir_lower_explicit_io(ssbo) pass can add
get_ssbo_size() intrinsics. Make sure those are lowered to load_ubo()s
on the targeted buffer descriptor.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31248 >
2024-09-20 08:30:12 +00:00
Boris Brezillon
e5ba60ca86
panvk: Use nir_metadata_control_flow
...
Replace nir_metadata_block_index | nir_metadata_dominance by
nir_metadata_control_flow.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31248 >
2024-09-20 08:30:12 +00:00
Boris Brezillon
ae9df204e9
panvk/csf: Fix TLS pointer copy
...
The source/destination was inverted. While at it, make this copy
conditional on tlsinfo.tls.size > 0.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31248 >
2024-09-20 08:30:12 +00:00
Boris Brezillon
28e4d22497
panvk/csf: Pass a non-zero flush-id to benefit from cache flush reduction
...
The cache flush reduction mechanism relies on the flush ID to
conditionally eliminate cache flush requests if another cache flush
happened between the time the flush ID was retrieved and the time
the flush operation happens.
Store the current flush ID at EndCommandBuffer() time, and pass it
back to the submit ioctl().
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31230 >
2024-09-20 07:59:48 +00:00
Boris Brezillon
73f7020ade
panvk/csf: Replace a cs_while() by a cs_if()
...
The cs_while() in cs_render_desc_ringbuf_move_ptr() was never meant to
be a while() loop, but we didn't have a cs_if() helper back then.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
741f6b9e5a
pan/cs: Add helpers for if/else blocks
...
The logic is a bit more involved than with other blocks to keep
cs_if/else() declaration consistent with the rest. This forces us to
keep track of the last end_if() so we can flush it if the next CS
[pseudo-]instruction is not a cs_else().
These changes require quite a bit of code motion to avoid forward
declarations.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
944ee9e088
pan/cs: Don't use a list for our block stack
...
We don't need a double-linked list to manage our block stack. Use a
single-link list instead, which simplifies things a bit and hopefully
lets the compiler optimize things a bit more.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
c0455249ea
pan/cs: Drop the cs_builder::blocks::cur field
...
The current block is just the top of the stack, so let's just provide
an helper that returns the current block and drop the cur field.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
79ff741104
pan/cs: Pass the block to end to cs_block_end()
...
This allows us to check that the block to end is at the top of the
stack.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
e6ba99deda
pan/cs: Make the CS loop helpers more robust
...
Always pass the loop object around so we can check that the current
block is the loop block, and provide syntactic sugor for unconditional
continue/break statements.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
7e322396aa
pan/cs: Make sure cs_alloc_ins() is never passed num_instrs=0
...
If zero instructions are requested, we should return NULL, but there's
no good reason to accept this case in the first place, so let's assert
that num_instrs > 0 instead.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:03 +00:00
Boris Brezillon
df1088e16f
pan/cs: Make sure we don't overflow the chunk capacity
...
assert that a block is no bigger than a chunk allocated by
::alloc_buffer().
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:02 +00:00
Boris Brezillon
bdd1335e4f
pan/cs: Fix buffer overflow in cs_block_end()
...
If cs_alloc_ins() fails, it returns a dummy instruction slot, which can
only hold one instruction. Make sure we skip the memcpy() if the CS
is invalid to avoid a buffer overflow.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205 >
2024-09-20 07:25:02 +00:00
David Rosca
843608a9f4
radeonsi/vcn: Use ac_vcn_enc_init_cmds and AV1 defines from ac
...
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31113 >
2024-09-20 06:58:29 +00:00
David Rosca
72ae8e25a8
ac: Add remaining VCN encode defines
...
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31113 >
2024-09-20 06:58:29 +00:00
David Rosca
aed89d28d3
ac: Add ac_vcn_init_enc_cmds
...
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31113 >
2024-09-20 06:58:29 +00:00
David Rosca
8ecad47695
ac: Fix typo RENCDOE -> RENCODE
...
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31113 >
2024-09-20 06:58:29 +00:00
David Rosca
d6cf36b4d2
radeonsi/vcn: Add rc_per_pic_ex encode command
...
This makes it a bit cleaner as VCN5 goes back to using base rc_per_pic.
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31113 >
2024-09-20 06:58:29 +00:00
Dylan Baker
3df03f100b
meson: use add_project_arguments instead of global
...
The `add_global*_arguments` family of functions affect subprojects, and
are therefore generally discouraged from being used.
Fixes: a42c2293ab ("wsi: Metal support")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31267 >
2024-09-20 05:08:41 +00:00
David Heidelberg
e1a53d41c9
ci/panfrost: update rock-5b from rc5 to rc7
...
Acked-by: Vignesh Raman <vignesh.raman@collabora.com >
Signed-off-by: David Heidelberg <david@ixit.cz >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31260 >
2024-09-20 12:17:37 +09:00
David Heidelberg
22db4971d9
ci/panfrost: update furmark checksum for T860 traces
...
Reviewed-by: Vignesh Raman <vignesh.raman@collabora.com >
Signed-off-by: David Heidelberg <david@ixit.cz >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31260 >
2024-09-20 12:17:34 +09:00