From: Jordan Justen Date: Sun, 10 Mar 2013 01:12:09 +0000 (-0800) Subject: glsl ir: add as_dereference_record X-Git-Tag: android-x86-4.4-r1~737 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e207c330203473830fcc1a36c5b7bbb7a574682d;p=android-x86%2Fexternal-mesa.git glsl ir: add as_dereference_record Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/ir.h b/src/glsl/ir.h index bbfec695f73..ee27dea993f 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -120,6 +120,7 @@ public: 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_dereference_record *as_dereference_record() { return NULL; } virtual class ir_expression * as_expression() { return NULL; } virtual class ir_rvalue * as_rvalue() { return NULL; } virtual class ir_loop * as_loop() { return NULL; } @@ -1738,6 +1739,11 @@ public: virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); + virtual ir_dereference_record *as_dereference_record() + { + return this; + } + /** * Get the variable that is ultimately referenced by an r-value */