mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-03-03 07:38:31 +00:00
tgsi: report opcode name in addition to the number when translation fails
This commit is contained in:
parent
c3c90c2dd9
commit
4f61bc135a
@ -38,6 +38,7 @@
|
|||||||
#include "util/u_math.h"
|
#include "util/u_math.h"
|
||||||
#include "util/u_memory.h"
|
#include "util/u_memory.h"
|
||||||
#include "util/u_sse.h"
|
#include "util/u_sse.h"
|
||||||
|
#include "tgsi/tgsi_info.h"
|
||||||
#include "tgsi/tgsi_parse.h"
|
#include "tgsi/tgsi_parse.h"
|
||||||
#include "tgsi/tgsi_util.h"
|
#include "tgsi/tgsi_util.h"
|
||||||
#include "tgsi_dump.h"
|
#include "tgsi_dump.h"
|
||||||
@ -1317,8 +1318,10 @@ tgsi_emit_ppc(const struct tgsi_token *tokens,
|
|||||||
ok = emit_instruction(&gen, &parse.FullToken.FullInstruction);
|
ok = emit_instruction(&gen, &parse.FullToken.FullInstruction);
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
|
uint opcode = parse.FullToken.FullInstruction.Instruction.Opcode;
|
||||||
debug_printf("failed to translate tgsi opcode %d to PPC (%s)\n",
|
debug_printf("failed to translate tgsi opcode %d to PPC (%s)\n",
|
||||||
parse.FullToken.FullInstruction.Instruction.Opcode,
|
opcode,
|
||||||
|
tgsi_get_opcode_name(opcode),
|
||||||
parse.FullHeader.Processor.Processor == TGSI_PROCESSOR_VERTEX ?
|
parse.FullHeader.Processor.Processor == TGSI_PROCESSOR_VERTEX ?
|
||||||
"vertex shader" : "fragment shader");
|
"vertex shader" : "fragment shader");
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#if defined(PIPE_ARCH_SSE)
|
#if defined(PIPE_ARCH_SSE)
|
||||||
#include "util/u_sse.h"
|
#include "util/u_sse.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "tgsi/tgsi_info.h"
|
||||||
#include "tgsi/tgsi_parse.h"
|
#include "tgsi/tgsi_parse.h"
|
||||||
#include "tgsi/tgsi_util.h"
|
#include "tgsi/tgsi_util.h"
|
||||||
#include "tgsi_exec.h"
|
#include "tgsi_exec.h"
|
||||||
@ -2917,8 +2918,10 @@ tgsi_emit_sse2(
|
|||||||
&parse.FullToken.FullInstruction );
|
&parse.FullToken.FullInstruction );
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
debug_printf("failed to translate tgsi opcode %d to SSE (%s)\n",
|
uint opcode = parse.FullToken.FullInstruction.Instruction.Opcode;
|
||||||
parse.FullToken.FullInstruction.Instruction.Opcode,
|
debug_printf("failed to translate tgsi opcode %d (%s) to SSE (%s)\n",
|
||||||
|
opcode,
|
||||||
|
tgsi_get_opcode_name(opcode),
|
||||||
parse.FullHeader.Processor.Processor == TGSI_PROCESSOR_VERTEX ?
|
parse.FullHeader.Processor.Processor == TGSI_PROCESSOR_VERTEX ?
|
||||||
"vertex shader" : "fragment shader");
|
"vertex shader" : "fragment shader");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user