radeonsi: fix clover crash
authorMarek Olšák <marek.olsak@amd.com>
Tue, 26 Jan 2016 17:52:23 +0000 (18:52 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 Jan 2016 17:53:41 +0000 (18:53 +0100)
caused by ce1e7784d08a14a90e6051915f2622424a54dc6e

Trivial.

src/gallium/drivers/radeonsi/si_shader.c

index 94c1129c88d2daa7489bf2252fdf8041db809b2a..f295843c76db9bc278705c8a2c99a4797e13c2a2 100644 (file)
@@ -4074,7 +4074,7 @@ void si_shader_dump(struct si_screen *sscreen, struct si_shader *shader,
                        si_shader_dump_disassembly(&shader->binary, debug);
 
        si_shader_dump_stats(sscreen, &shader->config,
-                            shader->selector->info.num_inputs,
+                            shader->selector ? shader->selector->info.num_inputs : 0,
                             shader->binary.code_size, debug, processor);
 }