nir/spirv: print id for unsupported alu opcode
authorKarol Herbst <kherbst@redhat.com>
Sat, 14 Jul 2018 04:17:08 +0000 (06:17 +0200)
committerKarol Herbst <kherbst@redhat.com>
Tue, 17 Jul 2018 11:24:09 +0000 (13:24 +0200)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/vtn_alu.c

index d7d17a825b7fbebe6b616e07dd8975972d50f94a..38ccd62ae1766a7d39dd23aad1006e2293169cb7 100644 (file)
@@ -415,7 +415,7 @@ vtn_nir_alu_op_for_spirv_opcode(struct vtn_builder *b,
    case SpvOpDPdyCoarse:   return nir_op_fddy_coarse;
 
    default:
-      vtn_fail("No NIR equivalent");
+      vtn_fail("No NIR equivalent: %u", opcode);
    }
 }