summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-09-29 15:19:52 -0700
committerEric Anholt <[email protected]>2010-09-29 15:51:05 -0700
commit3da98c1ca530cba9907735e6bf397017ffc8bd77 (patch)
tree654c7244bba31ef326dde274019e7a463b9ebc70
parente3ccfd4e03e6e2bf3f5a18be80f61819220b4c16 (diff)
i965: Fix use of undefined mem_ctx in vector splitting.
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
index 552254df87b..38195f6910d 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
@@ -212,7 +212,6 @@ public:
struct variable_entry *get_splitting_entry(ir_variable *var);
exec_list *variable_list;
- void *mem_ctx;
};
struct variable_entry *
@@ -300,6 +299,7 @@ ir_vector_splitting_visitor::visit_leave(ir_assignment *ir)
}
ir->remove();
} else if (lhs) {
+ void *mem_ctx = lhs->mem_ctx;
int elem = -1;
switch (ir->write_mask) {