summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-01-18 21:10:03 -0800
committerEric Anholt <eric@anholt.net>2011-01-19 16:29:10 -0800
commit3f2fe31eee1667ef9cad99aaad69e52a09c9effa (patch)
treeb6af5358886bb719238b56bf83f78ec19c9fdfdd /src/mesa/drivers/dri/i965/brw_fs.h
parenta124490262a29d2e873fe50ca57974f246946b85 (diff)
i965/fs: Add a helper for detecting texturing opcodes.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 703e017f12..65c8a1e020 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -306,6 +306,13 @@ public:
offset == inst->offset);
}
+ bool is_tex()
+ {
+ return (opcode == FS_OPCODE_TEX ||
+ opcode == FS_OPCODE_TXB ||
+ opcode == FS_OPCODE_TXL);
+ }
+
int opcode; /* BRW_OPCODE_* or FS_OPCODE_* */
fs_reg dst;
fs_reg src[3];