diff options
author | Nicolai Hähnle <[email protected]> | 2017-08-02 12:05:34 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-23 13:54:55 +0200 |
commit | 438177aa190d4ee99e2230f1fcc5df1df59e21f4 (patch) | |
tree | 080ad8d174f6e8aba6f48486ee267d06adf4695a /src/gallium/auxiliary/tgsi/tgsi_sanity.c | |
parent | 2f7c55c23f5fabde3dd1d4c6b85850cfe0132b73 (diff) |
gallium: use tgsi_get_opcode_name instead of tgsi_opcode_info::mnemonic
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_sanity.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_sanity.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c index a95bbfa9880..2c9ad993331 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c @@ -326,10 +326,12 @@ iter_instruction( } if (info->num_dst != inst->Instruction.NumDstRegs) { - report_error( ctx, "%s: Invalid number of destination operands, should be %u", info->mnemonic, info->num_dst ); + report_error( ctx, "%s: Invalid number of destination operands, should be %u", + tgsi_get_opcode_name(inst->Instruction.Opcode), info->num_dst ); } if (info->num_src != inst->Instruction.NumSrcRegs) { - report_error( ctx, "%s: Invalid number of source operands, should be %u", info->mnemonic, info->num_src ); + report_error( ctx, "%s: Invalid number of source operands, should be %u", + tgsi_get_opcode_name(inst->Instruction.Opcode), info->num_src ); } /* Check destination and source registers' validity. |