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:
Kenneth Graunke
2011-10-26 12:59:33 -07:00
parent febad1779a
commit 7e7c40ff98
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -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()
{
+1
View File
@@ -276,6 +276,7 @@ public:
ir_instruction *ir;
const char *annotation;
bool is_tex();
bool is_math();
};