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 d7d17a8..38ccd62 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);
    }
 }