mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
nouveau/nir: Put the UBO offset indirect into the address reg.
Fixes indirect UBO addressing pre-nvc0. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15949>
This commit is contained in:
parent
d1ff453a0d
commit
16ead7132f
1 changed files with 2 additions and 0 deletions
|
|
@ -2028,6 +2028,8 @@ Converter::visit(nir_intrinsic_instr *insn)
|
|||
Value *indirectOffset;
|
||||
uint32_t index = getIndirect(&insn->src[0], 0, indirectIndex) + 1;
|
||||
uint32_t offset = getIndirect(&insn->src[1], 0, indirectOffset);
|
||||
if (indirectOffset)
|
||||
indirectOffset = mkOp1v(OP_MOV, TYPE_U32, getSSA(4, FILE_ADDRESS), indirectOffset);
|
||||
|
||||
for (uint8_t i = 0u; i < dest_components; ++i) {
|
||||
loadFrom(FILE_MEMORY_CONST, index, dType, newDefs[i], offset, i,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue