[Mesa-dev] [PATCH 07/28] glsl: don't try adding build-ins to explicit locations bitmask

Anuj Phogat anuj.phogat at gmail.com
Wed Jan 6 11:47:38 PST 2016


s/build-ins/built-ins in commit message

On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri
<timothy.arceri at collabora.com> wrote:
> ---
>  src/glsl/link_varyings.cpp | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
> index 34e8418..ee7cae0 100644
> --- a/src/glsl/link_varyings.cpp
> +++ b/src/glsl/link_varyings.cpp
> @@ -1530,7 +1530,9 @@ reserved_varying_slot(struct gl_shader *stage, ir_variable_mode io_mode)
>     foreach_in_list(ir_instruction, node, stage->ir) {
>        ir_variable *const var = node->as_variable();
>
> -      if (var == NULL || var->data.mode != io_mode || !var->data.explicit_location)
> +      if (var == NULL || var->data.mode != io_mode ||
> +          !var->data.explicit_location ||
> +          var->data.location < VARYING_SLOT_VAR0)
>           continue;
>
>        var_slot = var->data.location - VARYING_SLOT_VAR0;
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list