aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-01 14:54:20 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-04 11:08:14 -0400
commit513c774d58044447e0c7c6169a30b9537e0f8e64 (patch)
tree7a32270d92f221b2ed3eb20dd89b1d8517cd6001 /src/panfrost/bifrost
parent0561fe3a06d61a182679eb43888797af5d8cc217 (diff)
pan/bi: Print bad instruction on src packing fail
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r--src/panfrost/bifrost/bi_pack.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c
index f6bdc1ebc87..60e3ddeab67 100644
--- a/src/panfrost/bifrost/bi_pack.c
+++ b/src/panfrost/bifrost/bi_pack.c
@@ -22,6 +22,7 @@
*/
#include "compiler.h"
+#include "bi_print.h"
#define RETURN_PACKED(str) { \
uint64_t temp = 0; \
@@ -468,8 +469,10 @@ bi_get_src(bi_instruction *ins, struct bi_registers *regs, unsigned s, bool is_f
return BIFROST_SRC_STAGE;
else if (src & BIR_INDEX_PASS)
return src & ~BIR_INDEX_PASS;
- else
- unreachable("Unknown src");
+ else {
+ bi_print_instruction(ins, stderr);
+ unreachable("Unknown src in above instruction");
+ }
}
/* Constructs a packed 2-bit swizzle for a 16-bit vec2 source. Source must be