diff options
author | Samuel Pitoiset <[email protected]> | 2016-06-29 15:16:35 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-06-29 20:37:18 +0200 |
commit | c0d92078bbce7c2d8f017bd7d9c86f339a751bdc (patch) | |
tree | 43bf62d7403a63dd53110e7c0a68ca1a34e5f1ba /src/gallium/drivers/nouveau/codegen | |
parent | 85ea8deb26da420987cbc1023c1f68b8c399e8d8 (diff) |
nv50/ir: print SHFL subops in debug mode
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |