intel/fs/ra: Increment spill_offset as part of the emit_spill loop
This makes it consistent with our handling of src.offset and with our handling of spill_offset in emit_unspill. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7084>
This commit is contained in:

committed by
Marge Bot

parent
06ebf23283
commit
74a1843ca0
@@ -881,10 +881,12 @@ emit_spill(const fs_builder &bld, fs_reg src,
|
||||
for (unsigned i = 0; i < count / reg_size; i++) {
|
||||
fs_inst *spill_inst =
|
||||
bld.emit(SHADER_OPCODE_GEN4_SCRATCH_WRITE, bld.null_reg_f(), src);
|
||||
src.offset += reg_size * REG_SIZE;
|
||||
spill_inst->offset = spill_offset + i * reg_size * REG_SIZE;
|
||||
spill_inst->offset = spill_offset;
|
||||
spill_inst->mlen = 1 + reg_size; /* header, value */
|
||||
spill_inst->base_mrf = spill_base_mrf(bld.shader);
|
||||
|
||||
src.offset += reg_size * REG_SIZE;
|
||||
spill_offset += reg_size * REG_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user