From 2924ca131f0e7c9bd301316ab8901b8a8333acc7 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 26 Jan 2016 18:52:23 +0100 Subject: radeonsi: fix clover crash caused by ce1e7784d08a14a90e6051915f2622424a54dc6e Trivial. --- src/gallium/drivers/radeonsi/si_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers') 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); } -- cgit v1.2.3