radeonsi: don't dump the shader key for non-monolithic shaders early
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jun 2016 09:10:21 +0000 (11:10 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Jul 2016 22:47:12 +0000 (00:47 +0200)
It's always zero.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index bba6a55df95d1e15109d213e5d32bab280afd597..c765975827c86b1a2229742af7c717067ca3f242 100644 (file)
@@ -6510,7 +6510,8 @@ int si_compile_tgsi_shader(struct si_screen *sscreen,
         * conversion fails. */
        if (r600_can_dump_shader(&sscreen->b, sel->info.processor) &&
            !(sscreen->b.debug_flags & DBG_NO_TGSI)) {
-               si_dump_shader_key(sel->type, &shader->key, stderr);
+               if (is_monolithic)
+                       si_dump_shader_key(sel->type, &shader->key, stderr);
                tgsi_dump(sel->tokens, 0);
                si_dump_streamout(&sel->so);
        }