spirv: fix a compiler warning
authorTapani Pälli <tapani.palli@intel.com>
Thu, 28 Mar 2019 09:35:27 +0000 (11:35 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 1 Apr 2019 04:43:10 +0000 (07:43 +0300)
Fixes implicit conversion from enumeration type 'SpvOp' warning.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/vtn_glsl450.c

index ead2afff1a01e615be125a74a0e6e2d02fa60050..adfdc1a790ccea84283be3d706e70ad5f0f4c8e3 100644 (file)
@@ -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: