On Wed, Aug 12, 2015 at 1:58 PM, Matt Turner <matts...@gmail.com> wrote:
> On Tue, Aug 11, 2015 at 6:51 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote:
>> ---
>>  src/glsl/builtin_functions.cpp             | 32 
>> +++++++++++++++++++++++++++++-
>>  src/glsl/glcpp/glcpp-parse.y               |  3 +++
>>  src/glsl/glsl_parser_extras.cpp            |  1 +
>>  src/glsl/glsl_parser_extras.h              |  2 ++
>>  src/glsl/ir.cpp                            |  5 +++--
>>  src/glsl/ir.h                              |  3 ++-
>>  src/glsl/ir_clone.cpp                      |  1 +
>>  src/glsl/ir_equals.cpp                     |  1 +
>>  src/glsl/ir_hv_accept.cpp                  |  1 +
>>  src/glsl/ir_print_visitor.cpp              |  6 ++++--
>>  src/glsl/ir_reader.cpp                     |  6 +++++-
>>  src/glsl/ir_rvalue_visitor.cpp             |  1 +
>>  src/glsl/nir/glsl_to_nir.cpp               |  5 +++++
>>  src/glsl/nir/nir.h                         |  4 +++-
>>  src/glsl/nir/nir_print.c                   |  3 +++
>>  src/glsl/opt_tree_grafting.cpp             |  1 +
>>  src/mesa/main/mtypes.h                     |  1 +
>>  src/mesa/state_tracker/st_glsl_to_tgsi.cpp |  2 ++
>>  18 files changed, 70 insertions(+), 8 deletions(-)
>>
>> diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
>> index 2175c66..1a71d74 100644
>> --- a/src/glsl/builtin_functions.cpp
>> +++ b/src/glsl/builtin_functions.cpp
>> @@ -399,6 +399,13 @@ shader_image_load_store(const _mesa_glsl_parse_state 
>> *state)
>>  }
>>
>>  static bool
>> +shader_samples(const _mesa_glsl_parse_state *state)
>> +{
>> +   return state->is_version(450, 0) ||
>> +      state->ARB_shader_texture_image_samples_enable;
>
> Vertically align these expressions.

This is how emacs (and me too) likes to align things, and it follows
nicely with the "indent by 3 on the next line" thing in the absence of
parens.

I could add parens, but I don't see what that would really add beyond
the slightly different alignment rules...

Looking at the rest of the file it does seem like everything else does
the weirdo alignment as well in those has_the_ext() helpers. Urgh...
so jarring. Oh well, I'll change it to the odd way.

  -ilia
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to