mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
i965: Add reads_accumulator_implicitly() function.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
cb6566f9df
commit
6541f1b4d0
2 changed files with 14 additions and 0 deletions
|
|
@ -662,6 +662,19 @@ backend_instruction::can_do_saturate() const
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
backend_instruction::reads_accumulator_implicitly() const
|
||||
{
|
||||
switch (opcode) {
|
||||
case BRW_OPCODE_MAC:
|
||||
case BRW_OPCODE_MACH:
|
||||
case BRW_OPCODE_SADA2:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
backend_instruction::has_side_effects() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ public:
|
|||
bool is_control_flow() const;
|
||||
bool can_do_source_mods() const;
|
||||
bool can_do_saturate() const;
|
||||
bool reads_accumulator_implicitly() const;
|
||||
|
||||
/**
|
||||
* True if the instruction has side effects other than writing to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue