aco: remove explicit dst_preserve flag

Instead, we can rely on the fact that subdword definitions
must preserve the unused bits while dword definitions either
pad or sign-extend.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12640>
This commit is contained in:
Daniel Schürmann
2021-09-01 14:19:33 +02:00
parent 9e3ff06c38
commit 0988f7b9ba
11 changed files with 11 additions and 16 deletions

View File

@@ -280,7 +280,6 @@ convert_to_SDWA(chip_class chip, aco_ptr<Instruction>& instr)
}
sdwa.dst_sel = SubdwordSel(instr->definitions[0].bytes(), 0, false);
sdwa.dst_preserve = sdwa.dst_sel.size() < 4;
if (instr->definitions[0].getTemp().type() == RegType::sgpr && chip == GFX8)
instr->definitions[0].setFixed(vcc);