summaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-02-18 13:54:26 -0500
committerRob Clark <[email protected]>2019-02-20 18:50:08 -0500
commit97479df8aaf6f00ebc70da452ea43e04f829ef2f (patch)
tree0063f211b2265005ba563ff787d1a407d7156cec /src/freedreno/ir3
parentf5ee8c54ed481f5c832f9364845680cc223a85b3 (diff)
freedreno/ir3: fix crash in compile fail case
The variant will be NULL if RA failed. Which isn't ideal, but at least lets not segfault and bring down the rest of the dEQP run with us. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3')
-rw-r--r--src/freedreno/ir3/ir3_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c
index 51c7b75ea38..3dcc3945ffe 100644
--- a/src/freedreno/ir3/ir3_shader.c
+++ b/src/freedreno/ir3/ir3_shader.c
@@ -228,7 +228,7 @@ ir3_shader_get_variant(struct ir3_shader *shader, struct ir3_shader_key *key,
struct ir3_shader_variant *v =
shader_variant(shader, key, created);
- if (binning_pass) {
+ if (v && binning_pass) {
if (!v->binning)
v->binning = create_variant(shader, key, true);
return v->binning;