Mesa (master): spirv: fix a compiler warning
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 1 04:55:57 UTC 2019
Module: Mesa
Branch: master
Commit: 06f40f5765d79ee71dc6b5b1ae31055cee943ee5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=06f40f5765d79ee71dc6b5b1ae31055cee943ee5
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Thu Mar 28 11:35:27 2019 +0200
spirv: fix a compiler warning
Fixes implicit conversion from enumeration type 'SpvOp' warning.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
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:
More information about the mesa-commit
mailing list