summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-29 12:42:33 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commitea1eefe13f2390981e37c22fd3791a042ef5f3e0 (patch)
tree6a7a6a45f63b0e96e9f016fc22529879bf64c9f6
parent63eb32950e64715a7a686ae9da82b55954db9ab8 (diff)
nir/lower_variables_scalar: Silence a compiler warning
Reviewed-by: Connor Abbott <[email protected]>
-rw-r--r--src/glsl/nir/nir_lower_variables_scalar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_variables_scalar.c b/src/glsl/nir/nir_lower_variables_scalar.c
index b754fa3f859..0b7263c88de 100644
--- a/src/glsl/nir/nir_lower_variables_scalar.c
+++ b/src/glsl/nir/nir_lower_variables_scalar.c
@@ -369,6 +369,8 @@ reg_const_load_single_instr(nir_reg_dest reg, nir_constant *constant,
instr->value.u[i] = constant->value.u[i + offset] ?
NIR_TRUE : NIR_FALSE;
break;
+ default:
+ unreachable("Invalid immediate type");
}
}
instr->dest.reg = reg;