diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-29 14:16:11 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-29 17:18:28 -0700 |
commit | d4f7e660dd81e05b0829c1b70663b3959fd78f47 (patch) | |
tree | c5547c26cc4e86fc83c8cd3c4234ed5aa5fee962 /src/glsl | |
parent | 506199b852390e14a1d78392285bee8f06b6ede7 (diff) |
ir_to_mesa: Start adding support for texture instructions.
Fixes:
glsl-fs-bug25902
glsl-fs-sampler-numbering
glsl-lod-bias
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index de1124975d..65026ef1f5 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -73,6 +73,7 @@ public: virtual class ir_function * as_function() { return NULL; } virtual class ir_dereference * as_dereference() { return NULL; } virtual class ir_dereference_array * as_dereference_array() { return NULL; } + virtual class ir_dereference_variable *as_dereference_variable() { return NULL; } virtual class ir_rvalue * as_rvalue() { return NULL; } virtual class ir_loop * as_loop() { return NULL; } virtual class ir_assignment * as_assignment() { return NULL; } @@ -987,6 +988,11 @@ public: virtual ir_instruction *clone(struct hash_table *) const; + virtual ir_dereference_variable *as_dereference_variable() + { + return this; + } + /** * Get the variable that is ultimately referenced by an r-value */ |