[Mesa-dev] [PATCH 044/133] nir/lower_variables_scalar: Silence a compiler warning

Jason Ekstrand jason at jlekstrand.net
Mon Dec 15 22:04:54 PST 2014


---
 src/glsl/nir/nir_lower_variables_scalar.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/glsl/nir/nir_lower_variables_scalar.c b/src/glsl/nir/nir_lower_variables_scalar.c
index 52e1ce6..92b716a 100644
--- a/src/glsl/nir/nir_lower_variables_scalar.c
+++ b/src/glsl/nir/nir_lower_variables_scalar.c
@@ -375,6 +375,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;
-- 
2.2.0



More information about the mesa-dev mailing list