[Mesa-dev] [PATCH] mesa: fix GL_MAX_NAME_LENGTH query for tessellation shaders

Matt Turner mattst88 at gmail.com
Wed Dec 23 18:06:58 PST 2015


On Wed, Dec 23, 2015 at 8:03 PM, Timothy Arceri
<timothy.arceri at collabora.com> wrote:
> ---
>  src/mesa/main/shader_query.cpp | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
> index a1813ac..2c92e4e 100644
> --- a/src/mesa/main/shader_query.cpp
> +++ b/src/mesa/main/shader_query.cpp
> @@ -765,7 +765,11 @@ static bool
>  add_index_to_name(struct gl_program_resource *res)
>  {
>     bool add_index = !(((res->Type == GL_PROGRAM_INPUT) &&
> -                       res->StageReferences & (1 << MESA_SHADER_GEOMETRY)));
> +                        res->StageReferences & ((1 << MESA_SHADER_GEOMETRY) |
> +                         (1 << MESA_SHADER_TESS_CTRL) |
> +                         (1 << MESA_SHADER_TESS_EVAL))) ||

Align these with the (1 << MESA_SHADER_GEOMETRY) they're grouped with.


More information about the mesa-dev mailing list