summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-01-26 18:52:23 +0100
committerMarek Olšák <[email protected]>2016-01-26 18:53:41 +0100
commit2924ca131f0e7c9bd301316ab8901b8a8333acc7 (patch)
treeb5c512db84b0955eb17ebc3ef3f0dcb94236c642 /src/gallium/drivers
parentaf57507e4f0d170e7c3cba58026a1c735262290e (diff)
radeonsi: fix clover crash
caused by ce1e7784d08a14a90e6051915f2622424a54dc6e Trivial.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c2
1 files changed, 1 insertions, 1 deletions
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);
}