diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-05-29 10:16:34 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-05-29 10:16:34 +0000 |
commit | a27a465cfc328a47052b6d70cdb000a5d7292f04 (patch) | |
tree | e64b2fed9d0240d52812cbbe125fd593afca43ec /lib/mesa/src/compiler/glsl/lower_discard.cpp | |
parent | a0e362bc327f26f7106d94700f05038ed585f53f (diff) |
Import Mesa 11.2.2
Diffstat (limited to 'lib/mesa/src/compiler/glsl/lower_discard.cpp')
-rw-r--r-- | lib/mesa/src/compiler/glsl/lower_discard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/compiler/glsl/lower_discard.cpp b/lib/mesa/src/compiler/glsl/lower_discard.cpp index 203d9e3b9..b62eb20dc 100644 --- a/lib/mesa/src/compiler/glsl/lower_discard.cpp +++ b/lib/mesa/src/compiler/glsl/lower_discard.cpp @@ -158,7 +158,7 @@ replace_discard(void *mem_ctx, ir_variable *var, ir_discard *ir) ir_assignment *assignment = new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(var), - condition); + condition, NULL); ir->replace_with(assignment); } @@ -180,7 +180,7 @@ lower_discard_visitor::visit_leave(ir_if *ir) ir_var_temporary); ir_assignment *temp_initializer = new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(temp), - new(mem_ctx) ir_constant(false)); + new(mem_ctx) ir_constant(false), NULL); ir->insert_before(temp); ir->insert_before(temp_initializer); |