[Mesa-dev] [PATCH 2/8] glsl: tidy up get_num_operands()

2017-08-08 Thread Timothy Arceri
Also add a comment that this should only be used by the ir_reader interface for testing purposes. v2: - fix grammar in comment - use unreachable rather than assert Reviewed-by: Thomas Helland --- src/compiler/glsl/ir.cpp | 9 ++--- src/compiler/glsl/ir.h |

Re: [Mesa-dev] [PATCH 2/8] glsl: tidy up get_num_operands()

2017-08-08 Thread Thomas Helland
2017-08-07 2:18 GMT+00:00 Timothy Arceri : > Also add a comment that this should only be used by the ir_reader > interface for testing purposes. > --- > src/compiler/glsl/ir.cpp | 8 ++-- > src/compiler/glsl/ir.h | 14 +++--- > 2 files changed, 9

[Mesa-dev] [PATCH 2/8] glsl: tidy up get_num_operands()

2017-08-06 Thread Timothy Arceri
Also add a comment that this should only be used by the ir_reader interface for testing purposes. --- src/compiler/glsl/ir.cpp | 8 ++-- src/compiler/glsl/ir.h | 14 +++--- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/compiler/glsl/ir.cpp