<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 1:18 AM Iago Toral Quiroga <<a href="mailto:itoral@igalia.com">itoral@igalia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
 src/compiler/shader_info.h        | 1 +<br>
 src/compiler/spirv/spirv_to_nir.c | 4 +++-<br>
 2 files changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h<br>
index 65bc0588d67..0a3cb37069c 100644<br>
--- a/src/compiler/shader_info.h<br>
+++ b/src/compiler/shader_info.h<br>
@@ -45,6 +45,7 @@ struct spirv_supported_capabilities {<br>
    bool variable_pointers;<br>
    bool storage_16bit;<br>
    bool int16;<br>
+   bool float16;<br>
    bool shader_viewport_index_layer;<br>
    bool subgroup_arithmetic;<br>
    bool subgroup_ballot;<br>
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c<br>
index a05c4d236ca..6f6673c8fb1 100644<br>
--- a/src/compiler/spirv/spirv_to_nir.c<br>
+++ b/src/compiler/spirv/spirv_to_nir.c<br>
@@ -3415,7 +3415,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,<br>
       case SpvCapabilityLinkage:<br>
       case SpvCapabilityVector16:<br>
       case SpvCapabilityFloat16Buffer:<br>
-      case SpvCapabilityFloat16:<br>
       case SpvCapabilityInt64Atomics:<br>
       case SpvCapabilityStorageImageMultisample:<br>
       case SpvCapabilityInt8:<br>
@@ -3432,6 +3431,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,<br>
       case SpvCapabilityFloat64:<br>
          spv_check_supported(float64, cap);<br>
          break;<br>
+      case SpvCapabilityFloat16:<br>
+         spv_check_supported(float16, cap);<br>
+         break;<br>
       case SpvCapabilityInt64:<br>
          spv_check_supported(int64, cap);<br>
          break;<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">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/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>