From: Samuel Pitoiset Date: Wed, 29 Jun 2016 13:16:35 +0000 (+0200) Subject: nv50/ir: print SHFL subops in debug mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d92078bbce7c2d8f017bd7d9c86f339a751bdc;p=mesa.git nv50/ir: print SHFL subops in debug mode Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp index e4aebaa500b..246e519b263 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp @@ -210,6 +210,11 @@ static const char *subfmOpStr[] = "", "3d" }; +static const char *shflOpStr[] = +{ + "idx", "up", "down", "bfly" +}; + static const char *DataTypeStr[] = { "-", @@ -562,6 +567,10 @@ void Instruction::print() const if (subOp < ARRAY_SIZE(subfmOpStr)) PRINT("%s ", subfmOpStr[subOp]); break; + case OP_SHFL: + if (subOp < ARRAY_SIZE(shflOpStr)) + PRINT("%s ", shflOpStr[subOp]); + break; default: if (subOp) PRINT("(SUBOP:%u) ", subOp);