if (ilo_debug & ILO_DEBUG_FS) {
ilo_printf("disassembly:\n");
- toy_compiler_disassemble(tc, sh->kernel, sh->kernel_size);
+ toy_compiler_disassemble(tc->dev, sh->kernel, sh->kernel_size, false);
ilo_printf("\n");
}
if (ilo_debug & ILO_DEBUG_GS) {
ilo_printf("disassembly:\n");
- toy_compiler_disassemble(tc, sh->kernel, sh->kernel_size);
+ toy_compiler_disassemble(tc->dev, sh->kernel, sh->kernel_size, false);
ilo_printf("\n");
}
if (ilo_debug & ILO_DEBUG_GS) {
ilo_printf("disassembly:\n");
- toy_compiler_disassemble(tc, sh->kernel, sh->kernel_size);
+ toy_compiler_disassemble(tc->dev, sh->kernel, sh->kernel_size, false);
ilo_printf("\n");
}
if (ilo_debug & ILO_DEBUG_VS) {
ilo_printf("disassembly:\n");
- toy_compiler_disassemble(tc, sh->kernel, sh->kernel_size);
+ toy_compiler_disassemble(tc->dev, sh->kernel, sh->kernel_size, false);
ilo_printf("\n");
}
toy_compiler_assemble(struct toy_compiler *tc, int *size);
void
-toy_compiler_disassemble(struct toy_compiler *tc, const void *kernel, int size);
+toy_compiler_disassemble(const struct ilo_dev_info *dev,
+ const void *kernel, int size,
+ bool dump_hex);
#endif /* TOY_COMPILER_H */
#include "toy_compiler.h"
void
-toy_compiler_disassemble(struct toy_compiler *tc, const void *kernel, int size)
+toy_compiler_disassemble(const struct ilo_dev_info *dev,
+ const void *kernel, int size,
+ bool dump_hex)
{
- /* set this to true to dump the hex */
- const bool dump_hex = false;
const struct brw_instruction *instructions = kernel;
int i;
}
brw_disasm(stderr, (struct brw_instruction *) &instructions[i],
- ILO_GEN_GET_MAJOR(tc->dev->gen));
+ ILO_GEN_GET_MAJOR(dev->gen));
}
}