[Mesa-dev] [PATCH v2 24/32] i965: add support for cached shaders with xfb qualifiers

Jordan Justen jordan.l.justen at intel.com
Thu Oct 19 05:32:12 UTC 2017


From: Timothy Arceri <timothy.arceri at collabora.com>

For now this disables the shader cache when transform feedback is
enabled via the GL API as we don't currently allow for it when
generating the sha for the shader.
---
 src/mesa/drivers/dri/i965/brw_disk_cache.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_disk_cache.c b/src/mesa/drivers/dri/i965/brw_disk_cache.c
index 0a612d7811..d89df846d5 100644
--- a/src/mesa/drivers/dri/i965/brw_disk_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_disk_cache.c
@@ -290,6 +290,14 @@ 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 (prog->sh.data->LinkStatus != linking_skipped)
       goto FAIL;
 
-- 
2.15.0.rc0



More information about the mesa-dev mailing list