pan/midgard: Disassemble with old pipeline always on T720
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 13 Nov 2019 13:48:12 +0000 (08:48 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 15 Nov 2019 18:37:33 +0000 (18:37 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Tested-by: Andre Heider <a.heider@gmail.com>
src/panfrost/midgard/disassemble.c

index 0be240aa14bc15f17907f35111fd8ad1d1c43fab..94a8166674bed0733872bafba76e3fe9844dafeb 100644 (file)
@@ -1514,8 +1514,8 @@ disassemble_midgard(uint8_t *code, size_t size, unsigned gpu_id, gl_shader_stage
 
                 switch (midgard_word_types[tag]) {
                 case midgard_word_type_texture: {
-                        /* Vertex texturing uses ldst/work space on older Midgard */
-                        bool has_texture_pipeline = (stage == MESA_SHADER_FRAGMENT) && gpu_id >= 0x750;
+                        /* Texturing uses ldst/work space on T720 */
+                        bool has_texture_pipeline = gpu_id != 0x0720;
                         print_texture_word(&words[i], tabs,
                                         has_texture_pipeline ? REG_TEX_BASE : 0,
                                         has_texture_pipeline ? REG_TEX_BASE : REGISTER_LDST_BASE);