return NULL;
}
-static bool check_swiz(struct tgsi_src_register *src, int8_t order[4])
+static bool check_swiz(struct tgsi_src_register *src, const int8_t order[4])
{
unsigned i;
for (i = 1; (i < 4) && order[i] >= 0; i++)
assert(so->ir);
if (compile_init(&ctx, so, tokens) != TGSI_PARSE_OK) {
+ DBG("INIT failed!");
ret = -1;
goto out;
}
compile_dump(&ctx);
ret = ir3_block_flatten(block);
- if (ret < 0)
+ if (ret < 0) {
+ DBG("FLATTEN failed!");
goto out;
+ }
if ((ret > 0) && (fd_mesa_debug & FD_DBG_OPTDUMP))
compile_dump(&ctx);
+ if (fd_mesa_debug & FD_DBG_OPTMSGS) {
+ printf("BEFORE CP:\n");
+ ir3_dump_instr_list(block->head);
+ }
+
ir3_block_cp(block);
if (fd_mesa_debug & FD_DBG_OPTDUMP)
}
ret = ir3_block_sched(block);
- if (ret)
+ if (ret) {
+ DBG("SCHED failed!");
goto out;
+ }
if (fd_mesa_debug & FD_DBG_OPTMSGS) {
printf("AFTER SCHED:\n");
ret = ir3_block_ra(block, so->type, key.half_precision,
so->frag_coord, so->frag_face, &so->has_samp);
- if (ret)
+ if (ret) {
+ DBG("RA failed!");
goto out;
+ }
if (fd_mesa_debug & FD_DBG_OPTMSGS) {
printf("AFTER RA:\n");