intel/compiler/xe2: Account for reg_unit() in TES intrinsics
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25020>
This commit is contained in:
committed by
Jordan Justen
parent
9859f5b4d2
commit
28744c8954
@@ -3027,7 +3027,7 @@ fs_visitor::nir_emit_tes_intrinsic(const fs_builder &bld,
|
||||
fs_reg tmp = bld.vgrf(dest.type, read_components);
|
||||
inst = bld.emit(SHADER_OPCODE_URB_READ_LOGICAL, tmp,
|
||||
srcs, ARRAY_SIZE(srcs));
|
||||
inst->size_written = read_components * REG_SIZE;
|
||||
inst->size_written = read_components * REG_SIZE * reg_unit(devinfo);
|
||||
for (unsigned i = 0; i < instr->num_components; i++) {
|
||||
bld.MOV(offset(dest, bld, i),
|
||||
offset(tmp, bld, i + first_component));
|
||||
@@ -3035,7 +3035,7 @@ fs_visitor::nir_emit_tes_intrinsic(const fs_builder &bld,
|
||||
} else {
|
||||
inst = bld.emit(SHADER_OPCODE_URB_READ_LOGICAL, dest,
|
||||
srcs, ARRAY_SIZE(srcs));
|
||||
inst->size_written = instr->num_components * REG_SIZE;
|
||||
inst->size_written = instr->num_components * REG_SIZE * reg_unit(devinfo);
|
||||
}
|
||||
inst->mlen = 1;
|
||||
inst->offset = imm_offset;
|
||||
|
||||
Reference in New Issue
Block a user