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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user