intel/vec4: Make implied_mrf_writes() a vec4_instruction method

Same as commit c20dc9b836 (intel/fs: Make implied_mrf_writes() an
fs_inst method.)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4093>
This commit is contained in:
Matt Turner
2020-02-27 16:46:52 -08:00
committed by Marge Bot
parent d8f3d0a3a8
commit 3d0821a216
4 changed files with 8 additions and 9 deletions

View File

@@ -1418,7 +1418,7 @@ vec4_instruction_scheduler::calculate_deps()
}
if (inst->mlen > 0 && !inst->is_send_from_grf()) {
for (int i = 0; i < v->implied_mrf_writes(inst); i++) {
for (unsigned i = 0; i < inst->implied_mrf_writes(); i++) {
add_dep(last_mrf_write[inst->base_mrf + i], n);
last_mrf_write[inst->base_mrf + i] = n;
}
@@ -1495,7 +1495,7 @@ vec4_instruction_scheduler::calculate_deps()
}
if (inst->mlen > 0 && !inst->is_send_from_grf()) {
for (int i = 0; i < v->implied_mrf_writes(inst); i++) {
for (unsigned i = 0; i < inst->implied_mrf_writes(); i++) {
last_mrf_write[inst->base_mrf + i] = n;
}
}