diff options
author | Iago Toral Quiroga <[email protected]> | 2016-07-15 10:48:03 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2016-07-18 09:53:16 +0200 |
commit | 1737e75bfb85eb22a30e4f1c69a825b3abd946f6 (patch) | |
tree | cc312265de6ceff993a3a6ed1cff430b7b445b76 /src/mesa/drivers | |
parent | 18f67c8a69fcde5d3f585effeef670d0861b0730 (diff) |
i965/tcs/scalar: only update imm_offset for second message in 64bit input loads
Our indirect URB read messages take both a direct and an indirect offset
so when we emit the second message for a 64-bit input load we can just
always incremement the immediate offset, even for the indirect case.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 5442b7355fe..f3c8430eb6b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -2509,13 +2509,7 @@ fs_visitor::nir_emit_tcs_intrinsic(const fs_builder &bld, */ if (num_iterations > 1) { num_components = instr->num_components - 2; - if (indirect_offset.file == BAD_FILE) { - imm_offset++; - } else { - fs_reg new_indirect = bld.vgrf(BRW_REGISTER_TYPE_UD, 1); - bld.ADD(new_indirect, indirect_offset, brw_imm_ud(1u)); - indirect_offset = new_indirect; - } + imm_offset++; } } break; |