<div dir="auto">Dave recently added a spirv-specific structure for this sort of feature enabling. I think it would be better to use that rather than nir_options.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 16, 2016 8:56 AM, "Juan A. Suarez Romero" <<a href="mailto:jasuarez@igalia.com">jasuarez@igalia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>><br>
<br>
Signed-off-by: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>><br>
---<br>
src/compiler/spirv/spirv_to_<wbr>nir.c | 8 +++++++-<br>
1 file changed, 7 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/spirv/spirv_to_<wbr>nir.c b/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
index 11f6248..f4bf3b4 100644<br>
--- a/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
+++ b/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
@@ -2525,6 +2525,13 @@ vtn_handle_preamble_<wbr>instruction(struct vtn_builder *b, SpvOp opcode,<br>
case SpvCapabilityInputAttachment:<br>
break;<br>
<br>
+ case SpvCapabilityFloat64:<br>
+ if (!b->nir_options->native_<wbr>float64) {<br>
+ vtn_warn("Unsupported SPIR-V capability: %s",<br>
+ spirv_capability_to_string(<wbr>cap));<br>
+ }<br>
+ break;<br>
+<br>
case SpvCapabilityGeometryStreams:<br>
case SpvCapabilityTessellation:<br>
case SpvCapabilityTessellationPoint<wbr>Size:<br>
@@ -2532,7 +2539,6 @@ vtn_handle_preamble_<wbr>instruction(struct vtn_builder *b, SpvOp opcode,<br>
case SpvCapabilityVector16:<br>
case SpvCapabilityFloat16Buffer:<br>
case SpvCapabilityFloat16:<br>
- case SpvCapabilityFloat64:<br>
case SpvCapabilityInt64:<br>
case SpvCapabilityInt64Atomics:<br>
case SpvCapabilityAtomicStorage:<br>
--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>