i965/vs: Add vec4_instruction::is_tex() query.
Copy and pasted from fs_inst::is_tex(), but without TXB. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -31,6 +31,16 @@ extern "C" {
|
||||
|
||||
namespace brw {
|
||||
|
||||
bool
|
||||
vec4_instruction::is_tex()
|
||||
{
|
||||
return (opcode == SHADER_OPCODE_TEX ||
|
||||
opcode == SHADER_OPCODE_TXD ||
|
||||
opcode == SHADER_OPCODE_TXF ||
|
||||
opcode == SHADER_OPCODE_TXL ||
|
||||
opcode == SHADER_OPCODE_TXS);
|
||||
}
|
||||
|
||||
bool
|
||||
vec4_instruction::is_math()
|
||||
{
|
||||
|
||||
@@ -276,6 +276,7 @@ public:
|
||||
ir_instruction *ir;
|
||||
const char *annotation;
|
||||
|
||||
bool is_tex();
|
||||
bool is_math();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user