[Mesa-dev] [PATCH 2/4] glsl: Copy ir_variable::assigned and ir_variable::used fields in ::clone method

Ian Romanick idr at freedesktop.org
Fri Aug 30 16:07:28 PDT 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Nothing currently relies on this, but one of the next patches will.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/glsl/ir_clone.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index 9d4178d..a75b3b7 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -59,6 +59,8 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
    var->explicit_binding = this->explicit_binding;
    var->has_initializer = this->has_initializer;
    var->depth_layout = this->depth_layout;
+   var->assigned = this->assigned;
+   var->used = this->used;
 
    var->num_state_slots = this->num_state_slots;
    if (this->state_slots) {
-- 
1.8.1.4



More information about the mesa-dev mailing list