summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-01 15:44:43 -0700
committerJason Ekstrand <[email protected]>2016-04-01 15:44:43 -0700
commitcc1320220f165269776dbd848b89f8561727d453 (patch)
tree57050aa624f3ba818539194dc85bbbfbcbc1595a /src/compiler
parentebb0bcc11d24835cd0c30a824fa86bd6577e0684 (diff)
nir/gather_info: Add an assert for supported stages
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_gather_info.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index 1b519d7139c..046836fc534 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -120,6 +120,12 @@ get_io_mask(nir_variable *var, gl_shader_stage stage)
void
nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
{
+ /* This pass does not yet support tessellation shaders */
+ assert(shader->stage == MESA_SHADER_VERTEX ||
+ shader->stage == MESA_SHADER_GEOMETRY ||
+ shader->stage == MESA_SHADER_FRAGMENT ||
+ shader->stage == MESA_SHADER_COMPUTE);
+
shader->info.inputs_read = 0;
foreach_list_typed(nir_variable, var, node, &shader->inputs)
shader->info.inputs_read |= get_io_mask(var, shader->stage);