mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 22:30:11 +01:00
nvk: Handle shifted QMD cbuf addrs in indirect command processing
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34443>
This commit is contained in:
parent
8b2f0be254
commit
44b01b55d5
1 changed files with 5 additions and 2 deletions
|
|
@ -379,10 +379,13 @@ build_process_cs_cmd_seq(nir_builder *b, struct nvk_nir_push *p,
|
|||
assert(cb0_layout.addr_hi_start == cb0_layout.addr_lo_start + 32);
|
||||
const uint32_t cb0_addr_lo_dw = cb0_layout.addr_lo_start / 32;
|
||||
const uint32_t cb0_addr_hi_dw = cb0_layout.addr_hi_start / 32;
|
||||
qmd_repl[cb0_addr_lo_dw] = nir_unpack_64_2x32_split_x(b, root_addr);
|
||||
nir_def *root_addr_shifted =
|
||||
nir_ushr_imm(b, root_addr, cb0_layout.addr_shift);
|
||||
qmd_repl[cb0_addr_lo_dw] =
|
||||
nir_unpack_64_2x32_split_x(b, root_addr_shifted);
|
||||
qmd_repl[cb0_addr_hi_dw] =
|
||||
nir_ior(b, load_global_dw(b, shader_qmd_addr, cb0_addr_hi_dw),
|
||||
nir_unpack_64_2x32_split_y(b, root_addr));
|
||||
nir_unpack_64_2x32_split_y(b, root_addr_shifted));
|
||||
|
||||
copy_repl_global_dw(b, qmd_addr, shader_qmd_addr,
|
||||
qmd_repl, ARRAY_SIZE(qmd_repl));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue