nir: Drop bogus nir_var_shader_in case in nir_lower_io's store_op().
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Jul 2016 09:38:27 +0000 (02:38 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jul 2016 00:17:09 +0000 (17:17 -0700)
This can't happen, the caller asserts that mode is shader_out or shared.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_io.c

index 3a8587a2dd3f794cca683b469c47a0969f2e6f37..914e0e1e0dba09d97c017423aec3371504644bf1 100644 (file)
@@ -198,7 +198,6 @@ store_op(struct lower_io_state *state,
 {
    nir_intrinsic_op op;
    switch (mode) {
-   case nir_var_shader_in:
    case nir_var_shader_out:
       op = per_vertex ? nir_intrinsic_store_per_vertex_output :
                         nir_intrinsic_store_output;