#ifndef DISASM_H_
#define DISASM_H_
-enum shader_t {
- SHADER_VERTEX,
- SHADER_FRAGMENT,
-};
+#include <stdio.h>
+#include <stdbool.h>
+
+#include "compiler/shader_enums.h"
+#include "util/u_debug.h"
/* bitmask of debug flags */
enum debug_t {
PRINT_RAW = 0x1, /* dump raw hexdump */
+ PRINT_VERBOSE = 0x2,
};
-int disasm(uint32_t *dwords, int sizedwords, int level, enum shader_t type);
+int disasm_a2xx(uint32_t *dwords, int sizedwords, int level, gl_shader_stage type);
+int disasm_a3xx(uint32_t *dwords, int sizedwords, int level, FILE *out, unsigned gpu_id);
void disasm_set_debug(enum debug_t debug);
#endif /* DISASM_H_ */