Mesa (master): spirv: Shut up unhandled enumeration value warnings.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Jan 11 23:17:06 UTC 2017


Module: Mesa
Branch: master
Commit: c17b2f572449e66a035ffb7be9dc833f6d80aac5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c17b2f572449e66a035ffb7be9dc833f6d80aac5

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Jan 11 15:16:11 2017 -0800

spirv: Shut up unhandled enumeration value warnings.

We don't want to do anything for the other cases.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/compiler/spirv/vtn_variables.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 3ecb54f..1cc1402 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -1078,6 +1078,8 @@ apply_var_decoration(struct vtn_builder *b, nir_variable *nir_var,
       case SpvBuiltInFragCoord:
          nir_var->data.pixel_center_integer = b->pixel_center_integer;
          break;
+      default:
+         break;
       }
    }
 




More information about the mesa-commit mailing list