[Mesa-dev] [PATCH 80/87] i965: add unreachable for compute stage in shader cache

Timothy Arceri timothy.arceri at collabora.com
Wed Jul 13 02:48:15 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 96a84aa..6e3b6e9 100644
--- a/src/mesa/drivers/dri/i965/brw_shader_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_shader_cache.c
@@ -576,6 +576,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);
@@ -618,6 +620,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