summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/disassemble.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-11-07 09:31:02 -0500
committerTomeu Vizoso <[email protected]>2019-11-08 06:45:03 +0000
commitac14facf7a181a2221ab5626c8628bd833ceea8e (patch)
tree6434f602d196d17676a4164c41e58a365b221526 /src/panfrost/midgard/disassemble.h
parent515941202d13898b99c4a08b2d0df119a0e1d05e (diff)
pan/midgard: Pass shader stage to disassembler
Vertex texturing behaves differently from fragment texturing on some GPUs. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/disassemble.h')
-rw-r--r--src/panfrost/midgard/disassemble.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panfrost/midgard/disassemble.h b/src/panfrost/midgard/disassemble.h
index 4d685323bae..8f1f52e1f84 100644
--- a/src/panfrost/midgard/disassemble.h
+++ b/src/panfrost/midgard/disassemble.h
@@ -1,4 +1,5 @@
#include <stddef.h>
+#include "compiler/shader_enums.h"
struct midgard_disasm_stats {
/* Counts gleaned from disassembly, or negative if the field cannot be
@@ -23,4 +24,4 @@ struct midgard_disasm_stats {
};
struct midgard_disasm_stats
-disassemble_midgard(uint8_t *code, size_t size, unsigned gpu_id);
+disassemble_midgard(uint8_t *code, size_t size, unsigned gpu_id, gl_shader_stage stage);