From e207c330203473830fcc1a36c5b7bbb7a574682d Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 9 Mar 2013 17:12:09 -0800 Subject: [PATCH] glsl ir: add as_dereference_record Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/glsl/ir.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.30.2