glsl: remove trailing spaces in various files
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 24 Nov 2015 11:40:53 +0000 (12:40 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 25 Nov 2015 07:09:17 +0000 (08:09 +0100)
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp
src/glsl/builtin_functions.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_reader.cpp

index 81cde73798a82d574721995774c6683e60eefb74..8fcda63d95ec9f4f3b649d235a8c27f2608d1027 100644 (file)
@@ -1824,7 +1824,7 @@ ast_expression::do_hir(exec_list *instructions,
        * tree.  This particular use must be at location specified in the grammar
        * as 'variable_identifier'.
        */
-      ir_variable *var = 
+      ir_variable *var =
          state->symbols->get_variable(this->primary_expression.identifier);
 
       if (var != NULL) {
@@ -5557,8 +5557,8 @@ ast_switch_statement::hir(exec_list *instructions,
 
    /* From page 66 (page 55 of the PDF) of the GLSL 1.50 spec:
     *
-    *    "The type of init-expression in a switch statement must be a 
-    *     scalar integer." 
+    *    "The type of init-expression in a switch statement must be a
+    *     scalar integer."
     */
    if (!test_expression->type->is_scalar() ||
        !test_expression->type->is_integer()) {
index 881ee2b6b55d4937a689f6d3bd7aa665483f26dd..c5489b7314a81d493df90329ba2ffc02fae01bde 100644 (file)
@@ -1336,7 +1336,7 @@ builtin_builder::create_builtins()
                 _smoothstep(fp64, glsl_type::dvec3_type,  glsl_type::dvec3_type),
                 _smoothstep(fp64, glsl_type::dvec4_type,  glsl_type::dvec4_type),
                 NULL);
+
    FD130(isnan)
    FD130(isinf)
 
@@ -1373,7 +1373,7 @@ builtin_builder::create_builtins()
    FD(distance)
    FD(dot)
 
-   add_function("cross", _cross(always_available, glsl_type::vec3_type), 
+   add_function("cross", _cross(always_available, glsl_type::vec3_type),
                 _cross(fp64, glsl_type::dvec3_type), NULL);
 
    FD(normalize)
index 7da4aba6b3d7a856ce3507cd884282559b10fb09..71389252743a25e208b1a31495da2a71739aa52c 100644 (file)
@@ -1086,7 +1086,7 @@ void
 ast_compound_statement::print(void) const
 {
    printf("{\n");
-   
+
    foreach_list_typed(ast_node, ast, link, &this->statements) {
       ast->print();
    }
@@ -1412,7 +1412,6 @@ ast_selection_statement::print(void) const
       printf("else ");
       else_statement->print();
    }
-   
 }
 
 
index 07720e28749b9da50713ff646cd7394ce2f0fc2c..7c0af1b712f4e9c845413697a9c44148a0530743 100644 (file)
@@ -93,7 +93,7 @@ ir_reader::read(exec_list *instructions, const char *src, bool scan_for_protos)
       ir_read_error(NULL, "couldn't parse S-Expression.");
       return;
    }
-   
+
    if (scan_for_protos) {
       scan_for_prototypes(instructions, expr);
       if (state->error)
@@ -147,7 +147,7 @@ ir_reader::read_type(s_expression *expr)
 
       return glsl_type::get_array_instance(base_type, s_size->value());
    }
-   
+
    s_symbol *type_sym = SX_AS_SYMBOL(expr);
    if (type_sym == NULL) {
       ir_read_error(expr, "expected <type>");