aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/ir/pp/nir.c
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-05-05 10:51:43 +0200
committerErico Nunes <[email protected]>2019-05-06 17:15:06 +0200
commit60a128fe8172826837fd6f91ae323aaa07ba7607 (patch)
treefd3a7aac8e2efd1089cf9be0dacae05c3d256e48 /src/gallium/drivers/lima/ir/pp/nir.c
parentc7f2145b4b1551d521de2303b0dc97b56a0e3907 (diff)
lima/ir: print names of unsupported intrinsics
While lima still doesn't support some kinds of intrinsics, it is more helpful to display the name of the unsupported instr->intrinsic to make debugging easier. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/ir/pp/nir.c')
-rw-r--r--src/gallium/drivers/lima/ir/pp/nir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/ir/pp/nir.c b/src/gallium/drivers/lima/ir/pp/nir.c
index bdf54b227c6..6cb90701fd3 100644
--- a/src/gallium/drivers/lima/ir/pp/nir.c
+++ b/src/gallium/drivers/lima/ir/pp/nir.c
@@ -266,7 +266,8 @@ static ppir_node *ppir_emit_intrinsic(ppir_block *block, nir_instr *ni)
return &snode->node;
default:
- ppir_error("unsupported nir_intrinsic_instr %d\n", instr->intrinsic);
+ ppir_error("unsupported nir_intrinsic_instr %s\n",
+ nir_intrinsic_infos[instr->intrinsic].name);
return NULL;
}
}