From: Tapani Pälli Date: Thu, 28 Mar 2019 09:35:27 +0000 (+0200) Subject: spirv: fix a compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06f40f5765d79ee71dc6b5b1ae31055cee943ee5;p=mesa.git spirv: fix a compiler warning Fixes implicit conversion from enumeration type 'SpvOp' warning. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin --- diff --git a/src/compiler/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c index ead2afff1a0..adfdc1a790c 100644 --- a/src/compiler/spirv/vtn_glsl450.c +++ b/src/compiler/spirv/vtn_glsl450.c @@ -787,7 +787,7 @@ vtn_handle_glsl450_instruction(struct vtn_builder *b, SpvOp ext_opcode, case GLSLstd450InterpolateAtCentroid: case GLSLstd450InterpolateAtSample: case GLSLstd450InterpolateAtOffset: - handle_glsl450_interpolation(b, ext_opcode, w, count); + handle_glsl450_interpolation(b, (enum GLSLstd450)ext_opcode, w, count); break; default: