[Mesa-dev] [PATCH] mesa/glsl: remove unused uses_builtin_functions field
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Tue Nov 22 08:18:13 UTC 2016
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
On Tue, 2016-11-22 at 18:01 +1100, Timothy Arceri wrote:
> This has been unused since 943b69cddd
> ---
> src/compiler/glsl/glsl_parser_extras.cpp | 1 -
> src/mesa/main/ff_fragment_shader.cpp | 1 -
> src/mesa/main/mtypes.h | 1 -
> 3 files changed, 3 deletions(-)
>
> diff --git a/src/compiler/glsl/glsl_parser_extras.cpp
> b/src/compiler/glsl/glsl_parser_extras.cpp
> index 88c7822..4f76815 100644
> --- a/src/compiler/glsl/glsl_parser_extras.cpp
> +++ b/src/compiler/glsl/glsl_parser_extras.cpp
> @@ -1984,7 +1984,6 @@ _mesa_glsl_compile_shader(struct gl_context
> *ctx, struct gl_shader *shader,
> shader->InfoLog = state->info_log;
> shader->Version = state->language_version;
> shader->IsES = state->es_shader;
> - shader->info.uses_builtin_functions = state-
> >uses_builtin_functions;
>
> /* Retain any live IR, but trash the rest. */
> reparent_ir(shader->ir, shader->ir);
> diff --git a/src/mesa/main/ff_fragment_shader.cpp
> b/src/mesa/main/ff_fragment_shader.cpp
> index c2618b7..036c5a3 100644
> --- a/src/mesa/main/ff_fragment_shader.cpp
> +++ b/src/mesa/main/ff_fragment_shader.cpp
> @@ -1256,7 +1256,6 @@ create_new_program(struct gl_context *ctx,
> struct state_key *key)
>
> p.shader->CompileStatus = true;
> p.shader->Version = state->language_version;
> - p.shader->info.uses_builtin_functions = state-
> >uses_builtin_functions;
> p.shader_program->Shaders =
> (gl_shader **)malloc(sizeof(*p.shader_program->Shaders));
> p.shader_program->Shaders[0] = p.shader;
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 0b38b4f..93a70b4 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -2234,7 +2234,6 @@ struct gl_subroutine_function
> */
> struct gl_shader_info
> {
> - bool uses_builtin_functions;
> bool uses_gl_fragcoord;
> bool redeclares_gl_fragcoord;
> bool ARB_fragment_coord_conventions_enable;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161122/090a18b4/attachment.sig>
More information about the mesa-dev
mailing list