}
bool
-backend_instruction::is_tex()
+backend_instruction::is_tex() const
{
return (opcode == SHADER_OPCODE_TEX ||
opcode == FS_OPCODE_TXB ||
}
bool
-backend_instruction::is_math()
+backend_instruction::is_math() const
{
return (opcode == SHADER_OPCODE_RCP ||
opcode == SHADER_OPCODE_RSQ ||
}
bool
-backend_instruction::is_control_flow()
+backend_instruction::is_control_flow() const
{
switch (opcode) {
case BRW_OPCODE_DO:
}
bool
-backend_instruction::can_do_source_mods()
+backend_instruction::can_do_source_mods() const
{
switch (opcode) {
case BRW_OPCODE_ADDC:
}
bool
-backend_instruction::can_do_saturate()
+backend_instruction::can_do_saturate() const
{
switch (opcode) {
case BRW_OPCODE_ADD:
class backend_instruction : public exec_node {
public:
- bool is_tex();
- bool is_math();
- bool is_control_flow();
- bool can_do_source_mods();
- bool can_do_saturate();
+ bool is_tex() const;
+ bool is_math() const;
+ bool is_control_flow() const;
+ bool can_do_source_mods() const;
+ bool can_do_saturate() const;
/**
* True if the instruction has side effects other than writing to