<div dir="auto">It's entirely possible something important is missing but I don't see anything wrong off-hand.  All three are<div dir="auto"><br></div><div dir="auto">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></div><div dir="auto"><br></div><div dir="auto">Are there CTS tests for this?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 14, 2017 8:55 PM, "Dave Airlie" <<a href="mailto:airlied@gmail.com">airlied@gmail.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: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
This just adds the support at the spirv->nir level for the Int64<br>
cap.<br>
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
 src/compiler/spirv/nir_spirv.h    | 1 +<br>
 src/compiler/spirv/spirv_to_<wbr>nir.c | 4 +++-<br>
 2 files changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/spirv/nir_<wbr>spirv.h b/src/compiler/spirv/nir_<wbr>spirv.h<br>
index e43e9b5..34cb5a5 100644<br>
--- a/src/compiler/spirv/nir_<wbr>spirv.h<br>
+++ b/src/compiler/spirv/nir_<wbr>spirv.h<br>
@@ -50,6 +50,7 @@ struct nir_spirv_supported_extensions {<br>
    bool tessellation;<br>
    bool draw_parameters;<br>
    bool image_write_without_format;<br>
+   bool int64;<br>
 };<br>
<br>
 nir_function *spirv_to_nir(const uint32_t *words, size_t word_count,<br>
diff --git a/src/compiler/spirv/spirv_to_<wbr>nir.c b/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
index 7bd32ab..07a33ea 100644<br>
--- a/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
+++ b/src/compiler/spirv/spirv_to_<wbr>nir.c<br>
@@ -2669,7 +2669,6 @@ vtn_handle_preamble_<wbr>instruction(struct vtn_builder *b, SpvOp opcode,<br>
       case SpvCapabilityVector16:<br>
       case SpvCapabilityFloat16Buffer:<br>
       case SpvCapabilityFloat16:<br>
-      case SpvCapabilityInt64:<br>
       case SpvCapabilityInt64Atomics:<br>
       case SpvCapabilityAtomicStorage:<br>
       case SpvCapabilityInt16:<br>
@@ -2687,6 +2686,9 @@ vtn_handle_preamble_<wbr>instruction(struct vtn_builder *b, SpvOp opcode,<br>
       case SpvCapabilityFloat64:<br>
          spv_check_supported(float64, cap);<br>
          break;<br>
+      case SpvCapabilityInt64:<br>
+         spv_check_supported(int64, cap);<br>
+         break;<br>
<br>
       case SpvCapabilityAddresses:<br>
       case SpvCapabilityKernel:<br>
--<br>
2.7.4<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>