diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-11-07 09:31:02 -0500 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2019-11-08 06:45:03 +0000 |
commit | ac14facf7a181a2221ab5626c8628bd833ceea8e (patch) | |
tree | 6434f602d196d17676a4164c41e58a365b221526 /src/panfrost/pandecode | |
parent | 515941202d13898b99c4a08b2d0df119a0e1d05e (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/pandecode')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 0de1f7c7043..6b5ae422ef8 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -1860,7 +1860,9 @@ pandecode_shader_disassemble(mali_ptr shader_ptr, int shader_no, int type, stats.quadword_count = 0; stats.helper_invocations = false; } else { - stats = disassemble_midgard(code, sz, gpu_id); + stats = disassemble_midgard(code, sz, gpu_id, + type == JOB_TYPE_TILER ? + MESA_SHADER_FRAGMENT : MESA_SHADER_VERTEX); } /* Print shader-db stats */ |