On 24/11/2026 00:01, Jiaxing Hu wrote: > Add the RK3576 NPU. Its PC_TASK_CON has a 16-bit task number, with > pp_en, count_clear and last_layer_clear at BIT16, BIT17 and BIT18, as > Chaoyi Chen confirmed: > > > https://lore.kernel.org/all/[email protected]/ > > Add it to rocket_registers.h as TASK_CON_RK3576, generated from Mesa's > registers.xml, and use it on the RK3576. Count the cores in rocket_drv.c > against the match table, not only the RK3588 compatible.
In the corresponding mesa change: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/43804/diffs You had to tweak the header generator to allow two register definitions to exist at the same offset. >From what I can see, Mesa has another way of allowing hw-specific variants of a given register: variants/varset used in freedreno register definitions. Have you explored using that?
