From: Jordan Justen Date: Tue, 13 Mar 2018 17:49:28 +0000 (-0700) Subject: glsl: Remove api_enabled tracking for transform feedback X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b473f9e3cc6820a6d1441e046be5ece22e03d17;p=mesa.git glsl: Remove api_enabled tracking for transform feedback We used this to prevent usage of the disk shader cache when transform feedback was enabled via the GL API. This is no longer used. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105444 Signed-off-by: Jordan Justen Reviewed-by: Tapani Pälli Reviewed-by: Timothy Arceri --- diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 0a484ce1329..1fdfcb877de 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -1336,8 +1336,6 @@ store_tfeedback_info(struct gl_context *ctx, struct gl_shader_program *prog, if (has_xfb_qualifiers) { qsort(tfeedback_decls, num_tfeedback_decls, sizeof(*tfeedback_decls), cmp_xfb_offset); - } else { - xfb_prog->sh.LinkedTransformFeedback->api_enabled = true; } xfb_prog->sh.LinkedTransformFeedback->Varyings = diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 734fefc97f4..5ee27d9977f 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1861,9 +1861,6 @@ struct gl_transform_feedback_buffer /** Post-link transform feedback info. */ struct gl_transform_feedback_info { - /* Was xfb enabled via the api or in shader layout qualifiers */ - bool api_enabled; - unsigned NumOutputs; /* Bitmask of active buffer indices. */