diff options
author | Rob Clark <[email protected]> | 2019-02-18 13:54:26 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-02-20 18:50:08 -0500 |
commit | 97479df8aaf6f00ebc70da452ea43e04f829ef2f (patch) | |
tree | 0063f211b2265005ba563ff787d1a407d7156cec /src/freedreno | |
parent | f5ee8c54ed481f5c832f9364845680cc223a85b3 (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')
-rw-r--r-- | src/freedreno/ir3/ir3_shader.c | 2 |
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; |