a4xx: add noperspective interpolation support
[mesa.git] / src / gallium / drivers / freedreno / disasm.h
index 92efd5ae53c6a3ad149635c476088c6ce55de575..dc29b2fbd2a3f184fe34790a45164e3ad937a929 100644 (file)
 #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_ */