[Mesa-dev] [PATCH] i965: remove remaining tabs in brw_link.cpp

Jason Ekstrand jason at jlekstrand.net
Thu Jun 16 13:56:03 UTC 2016


Thanks,

Acked-by: Jason Ekstrand <jason at jlekstrand.net>
On Jun 15, 2016 11:13 PM, "Timothy Arceri" <timothy.arceri at collabora.com>
wrote:

> ---
>  src/mesa/drivers/dri/i965/brw_link.cpp | 26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp
> b/src/mesa/drivers/dri/i965/brw_link.cpp
> index 16bfbaa..ab2484e 100644
> --- a/src/mesa/drivers/dri/i965/brw_link.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_link.cpp
> @@ -210,13 +210,13 @@ brw_link_shader(struct gl_context *ctx, struct
> gl_shader_program *shProg)
>     for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) {
>        struct gl_shader *shader = shProg->_LinkedShaders[stage];
>        if (!shader)
> -        continue;
> +         continue;
>
>        struct gl_program *prog =
> -        ctx->Driver.NewProgram(ctx, _mesa_shader_stage_to_program(stage),
> +         ctx->Driver.NewProgram(ctx, _mesa_shader_stage_to_program(stage),
>                                  shader->Name);
>        if (!prog)
> -       return false;
> +        return false;
>        prog->Parameters = _mesa_new_parameter_list();
>
>        _mesa_copy_linked_program_data((gl_shader_stage) stage, shProg,
> prog);
> @@ -231,19 +231,19 @@ brw_link_shader(struct gl_context *ctx, struct
> gl_shader_program *shProg)
>         * get sent to the shader.
>         */
>        foreach_in_list(ir_instruction, node, shader->ir) {
> -        ir_variable *var = node->as_variable();
> +         ir_variable *var = node->as_variable();
>
> -        if ((var == NULL) || (var->data.mode != ir_var_uniform)
> -            || (strncmp(var->name, "gl_", 3) != 0))
> -           continue;
> +         if ((var == NULL) || (var->data.mode != ir_var_uniform)
> +             || (strncmp(var->name, "gl_", 3) != 0))
> +            continue;
>
> -        const ir_state_slot *const slots = var->get_state_slots();
> -        assert(slots != NULL);
> +         const ir_state_slot *const slots = var->get_state_slots();
> +         assert(slots != NULL);
>
> -        for (unsigned int i = 0; i < var->get_num_state_slots(); i++) {
> -           _mesa_add_state_reference(prog->Parameters,
> -                                     (gl_state_index *) slots[i].tokens);
> -        }
> +         for (unsigned int i = 0; i < var->get_num_state_slots(); i++) {
> +            _mesa_add_state_reference(prog->Parameters,
> +                                      (gl_state_index *) slots[i].tokens);
> +         }
>        }
>
>        do_set_program_inouts(shader->ir, prog, shader->Stage);
> --
> 2.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160616/09e9b223/attachment.html>


More information about the mesa-dev mailing list