diff options
author | Eric Anholt <[email protected]> | 2011-06-24 13:17:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-06-29 15:10:03 -0700 |
commit | e617a53a74cd27a322fd2dd05ff1c66c6437fde3 (patch) | |
tree | 2b7d63b8b5f36ac4debb9381621aad2a2c6b4c97 /src | |
parent | 487dd96c2706aa352ed44637507dd7f38ac80306 (diff) |
glsl: Allow ir_assignment() constructor to not specify condition.
We almost never want to specify a condition, and when we do we're
already thinking about it (because we're writing a lowering pass
generating the condition), so a default argument should make the code
more pleasant to read.
NOTE: This is a candidate for the 7.11 branch (we want to be able to
cherry-pick future code).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index a41984310b3..9d6ce7eaa20 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -682,7 +682,7 @@ public: class ir_assignment : public ir_instruction { public: - ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition); + ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL); /** * Construct an assignment with an explicit write mask |