From: Marek Olšák Date: Tue, 26 Jan 2016 17:52:23 +0000 (+0100) Subject: radeonsi: fix clover crash X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2924ca131f0e7c9bd301316ab8901b8a8333acc7;p=mesa.git radeonsi: fix clover crash caused by ce1e7784d08a14a90e6051915f2622424a54dc6e Trivial. --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 94c1129c88d..f295843c76d 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -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); }