From 30e5abe5f51088f696fae79a69363ac3e78e3e3a Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Sat, 28 Nov 2020 08:29:18 -0800 Subject: [PATCH] microsoft/compiler: Add missing 'return' to switch case Fixes: b9c61379 ("microsoft/compiler: translate nir to dxil") Reviewed-by: Erik Faye-Lund Part-of: --- src/microsoft/compiler/dxil_signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/compiler/dxil_signature.c b/src/microsoft/compiler/dxil_signature.c index 9718a42ea5a..9cd94b9ea8a 100644 --- a/src/microsoft/compiler/dxil_signature.c +++ b/src/microsoft/compiler/dxil_signature.c @@ -62,7 +62,7 @@ get_interpolation(nir_variable *var) case INTERP_MODE_NONE: return DXIL_INTERP_LINEAR_CENTROID; case INTERP_MODE_FLAT: return DXIL_INTERP_CONSTANT; case INTERP_MODE_NOPERSPECTIVE: return DXIL_INTERP_LINEAR_NOPERSPECTIVE_CENTROID; - case INTERP_MODE_SMOOTH: DXIL_INTERP_LINEAR_CENTROID; + case INTERP_MODE_SMOOTH: return DXIL_INTERP_LINEAR_CENTROID; } } else {