glsl: Remove api_enabled tracking for transform feedback
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 13 Mar 2018 17:49:28 +0000 (10:49 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 19 Mar 2018 16:57:09 +0000 (09:57 -0700)
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 <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/link_varyings.cpp
src/mesa/main/mtypes.h

index 0a484ce1329f9a1923f9bdede1429a07f4203762..1fdfcb877deb9e608cb634a29c3e9543218cc108 100644 (file)
@@ -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 =
index 734fefc97f4fc4cb77198f62d9108d962df0540a..5ee27d9977f021229a841f88287f760a85b5d448 100644 (file)
@@ -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. */