From 06f40f5765d79ee71dc6b5b1ae31055cee943ee5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Thu, 28 Mar 2019 11:35:27 +0200 Subject: [PATCH] spirv: fix a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes implicit conversion from enumeration type 'SpvOp' warning. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin --- src/compiler/spirv/vtn_glsl450.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.11.0