Gert Wollny
021cbaba7d
r600/sfn: Simplify m_last_addr tracking in emit_alu_op
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
e55dbc7882
r600/sfn: Move last_addr handling out of fill_alu_dst
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
685c01b112
r600/sfn: minor reordering of operations in assembler
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
c11c704f8a
r600/sfn: drop unused literals tracking in assembler
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
0a209a9723
r600/sfn: Move prepare_alu_dst/copy_dst to sfn_fill_bytecode.cpp, rename to fill_alu_dst
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
f3cfcdae45
r600/sfn: Move prepare_alu_src to sfn_fill_bytecode.cpp, rename to fill_alu_src_operands
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
dfc387eb4e
r600/sfn: Move copy_src to sfn_fill_bytecode.cpp, rename to fill_alu_src
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
b03343c7ec
r600/sfn: Move lds_queue_read decrement out of prepare_alu_src to caller
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
4f38659f9e
r600/sfn: use local opcode consistently in emit_alu_op
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
d0fe966735
r600/sfn: use opcode switch in ALU post-emit update
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
f2b8ebdc11
r600/sfn: return LDS opcode properties as tuple
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
7861687c1f
r600/sfn: extract and decouple ALU post-emit state update
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
e6c6319e44
r600/sfn: extract emitting the bytecode of Rat Instr too
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
71533bd54f
r600/sfn: simplify fill bytecode
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
f44ed15a9d
r600/sfn: Drop index register handler in assembler
...
It is no longer used.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
563833962f
r600/sfn: extract some byte code emission from assembler
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
79820b61e2
r600/sfn: use c++ pattern for zero-init of structs
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
dbad0340f3
r600/sfn: de-duplicate emit_wait_ack
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
e802668037
r600/sfn: Refactor AssemblerVisitor emit_alu_op
...
Move some parts out to helper methods and reorder some
instructions.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
68bab95e6a
r600/sfn: Make some member variables references
...
They should never be nullptr.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
7bab7c95f3
r600/sfn: Fix typo with AssemberVisitor
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
8496727a74
r600/sfn: refactor CopyPropBackVisitor::visit(AluInstr*)
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
dc726457e2
r600/sfn: extract logging from CopyPropFwdVisitor::visit(AluInstr*)
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
5bef7e168a
r600/sfn: refactor CopyPropFwdVisitor::visit(AluInsr*)
...
v2: drop now unused local variable
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
8dbf11c501
r600/sfn: refactor CopyPropFwdVisitor::propagate_to
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
00801796ae
r600/sfn: deduplicate fixpoint loop for optimizers
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
0f97e4aa79
r600/sfn: deduplicate optimizer logging code
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
1b6526da17
r600/sfn: deduplicate some code in DCE
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
4c21894460
r600/sfn: extract check and report for unscheduled instructions
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
6d681cdb98
r600/sfn: Move exports emission to helper
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
bdcc1afd80
r600/sfn: refactor BlockScheduler::schedule_block
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
8de22efe5c
r600/sfn: extract kcache check out of schedule_alu_to_group_vec
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
3fcd2f106a
r600/sfn: Move tracking of kcache reservation to AluScheduleContext
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
39d7251568
r600/sfn: move tracking of kcache reservation failure to scheduler
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
dfb0e209e9
r600/sfn: make try_kcache_reservation const
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
141e06caca
r600/sfn: split kcache evaluation into try and commit
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
81d359de55
r600/sfn: simplify ALU scheduling failure handling
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
033dd489de
r600/sfn: collaps no_schedule and scheduled
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
4698c17b9d
r600/sfn: make ALU scheduling return values more meaningful
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
b4efcadbb8
r600/sfn: extract idx load state handling in scheduler
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
100061cdcf
r600/sfn: extract t-slot allocation when filling ALU groups
...
Also replace the magic number 0x10 with AluOp::t to make it easier to
understand what is tested.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
e083a06bf5
r600/sfn: Extract group fill failure handling
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
2e9f035060
r600/sfn: pass reference to group when possible
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:57 +00:00
Gert Wollny
d654241931
r600/sfn: extract fill_alu_group
...
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:56 +00:00
Gert Wollny
b7cd79ae3f
r600/sfn: Extract schedule alu groups first
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:56 +00:00
Gert Wollny
ba7d7cd108
r600/sfn: don't use return parameters in extracted method
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:56 +00:00
Gert Wollny
7268a696d5
r600/sfn: Extract some helpers from schedule_alu
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945 >
2026-06-07 21:36:56 +00:00
Mike Blumenkrantz
6094bed5a4
llvmpipe: create a zeroed payload for use without task shaders
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
this is never accessed, but spec requires that mesh shaders
can declare it (which implicitly accesses it because llvm branching)
fixes dEQP-VK.mesh_shader.ext.misc.payload_not_accessed
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41963 >
2026-06-07 19:30:41 +00:00
Vinson Lee
3515c52e8c
ethosu/mlw_codec: silence -Wunused-const-variable in vendored encoder
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Compiling with clang produces a -Wunused-const-variable warning in the
weight codec vendored from Arm's Regor compiler:
src/gallium/drivers/ethosu/mlw_codec/source/mlw_decode.cpp:313:15:
warning: unused variable 'INITIAL_BLOCKS' [-Wunused-const-variable]
This warning is emitted only by clang, not by GCC, in the same vendored
mlw_codec sources whose other warnings are already suppressed at the
build-config level. Extend the existing cpp_args with
-Wno-unused-const-variable rather than patching the imported source, so
the files stay pristine for clean re-vendoring.
Fixes: d66d2c05d3 ("ethosu: Switch to the weight encoder from Regor")
Assisted-by: Claude Code (Claude Opus 4.8)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42070 >
2026-06-06 21:44:50 -07:00
Christian Gmeiner
b9c763454e
etnaviv: Use integer texture formats for R32/RG32 integer textures
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
R32_SINT/UINT and R32G32_SINT/UINT are sampled as float, so a missing
channel is filled with a float default. A channel-expanding integer blit
then gets a float 1.0 alpha instead of integer 1, which fails 8 cases of
dEQP-GLES3.functional.fbo.blit.conversion such as rg32i_to_rgba8i.
The hardware support for integer texturing is unclear from RE and the
feature databases, so enable it on halti5 GPUs as a conservative
starting point.
Fixes: 64c7cdcae5 ("etnaviv: add missing formats")
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41884 >
2026-06-06 22:20:56 +00:00