projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e65ea05
)
i915g: Improve logging of unsupported opcodes.
author
Emma Anholt
<emma@anholt.net>
Sun, 27 Jun 2021 21:35:32 +0000
(14:35 -0700)
committer
Emma Anholt
<emma@anholt.net>
Mon, 28 Jun 2021 22:01:37 +0000
(15:01 -0700)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11617>
src/gallium/drivers/i915/i915_fpc_translate.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i915/i915_fpc_translate.c
b/src/gallium/drivers/i915/i915_fpc_translate.c
index
107f2bd
..
4368ed1
100644
(file)
--- a/
src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/
src/gallium/drivers/i915/i915_fpc_translate.c
@@
-35,6
+35,7
@@
#include "pipe/p_shader_tokens.h"
#include "tgsi/tgsi_dump.h"
+#include "tgsi/tgsi_info.h"
#include "tgsi/tgsi_parse.h"
#include "util/log.h"
#include "util/u_math.h"
@@
-814,7
+815,9
@@
i915_translate_instruction(struct i915_fp_compile *p,
break;
default:
- i915_program_error(p, "bad opcode %d", inst->Instruction.Opcode);
+ i915_program_error(p, "bad opcode %s (%d)",
+ tgsi_get_opcode_name(inst->Instruction.Opcode),
+ inst->Instruction.Opcode);
p->error = 1;
return;
}