i965: Allow disk shader cache usage with transform feedback
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 13 Mar 2018 17:47:19 +0000 (10:47 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 19 Mar 2018 16:57:09 +0000 (09:57 -0700)
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/mesa/drivers/dri/i965/brw_disk_cache.c

index 0671dd20f85003c1e9a897f37475f46d16277a60..c77e921b6a726e95c5f50a480659438b648f4567 100644 (file)
@@ -280,14 +280,6 @@ brw_disk_cache_upload_program(struct brw_context *brw, gl_shader_stage stage)
    if (prog == NULL)
       return false;
 
-   /* FIXME: For now we don't read from the cache if transform feedback is
-    * enabled via the API. However the shader cache does support transform
-    * feedback when enabled via in shader xfb qualifiers.
-    */
-   if (prog->sh.LinkedTransformFeedback &&
-       prog->sh.LinkedTransformFeedback->api_enabled)
-      return false;
-
    if (brw->ctx._Shader->Flags & GLSL_CACHE_FALLBACK)
       goto fail;