mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
i965/vec4: Fix handling of multiple register reads and writes in split_virtual_grfs().
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
9304f60cbe
commit
588859e18c
1 changed files with 6 additions and 9 deletions
|
|
@ -1143,15 +1143,12 @@ vec4_visitor::split_virtual_grfs()
|
||||||
* to split.
|
* to split.
|
||||||
*/
|
*/
|
||||||
foreach_block_and_inst(block, vec4_instruction, inst, cfg) {
|
foreach_block_and_inst(block, vec4_instruction, inst, cfg) {
|
||||||
/* If there's a SEND message loading from a GRF on gen7+, it needs to be
|
if (inst->dst.file == GRF && inst->regs_written > 1)
|
||||||
* contiguous.
|
split_grf[inst->dst.reg] = false;
|
||||||
*/
|
|
||||||
if (inst->is_send_from_grf()) {
|
for (int i = 0; i < 3; i++) {
|
||||||
for (int i = 0; i < 3; i++) {
|
if (inst->src[i].file == GRF && inst->regs_read(i) > 1)
|
||||||
if (inst->src[i].file == GRF) {
|
split_grf[inst->src[i].reg] = false;
|
||||||
split_grf[inst->src[i].reg] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue