[Mesa-dev] [PATCH 80/88] i965: add unreachable for compute stage in shader cache
Timothy Arceri
timothy.arceri at collabora.com
Sat Sep 24 05:26:01 UTC 2016
---
src/mesa/drivers/dri/i965/brw_shader_cache.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_shader_cache.c b/src/mesa/drivers/dri/i965/brw_shader_cache.c
index 73e7afc..8d13746 100644
--- a/src/mesa/drivers/dri/i965/brw_shader_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_shader_cache.c
@@ -581,6 +581,8 @@ upload_cached_program(struct brw_context *brw, gl_shader_stage stage)
case MESA_SHADER_FRAGMENT:
gen_wm_sha1(brw, prog, &vs_key, &wm_key, binary_sha1);
break;
+ case MESA_SHADER_COMPUTE:
+ unreachable("Unsupported shader stage");
}
buffer = cache_get(cache, binary_sha1, &size);
@@ -623,6 +625,8 @@ upload_cached_program(struct brw_context *brw, gl_shader_stage stage)
case MESA_SHADER_FRAGMENT:
upload_cached_wm(brw, &binary, prog, &wm_key);
break;
+ case MESA_SHADER_COMPUTE:
+ unreachable("Unsupported shader stage");
}
if (binary.current != binary.end || binary.overrun) {
--
2.7.4
More information about the mesa-dev
mailing list