diff options
author | Mark Janes <[email protected]> | 2018-02-09 09:37:57 -0800 |
---|---|---|
committer | Mark Janes <[email protected]> | 2018-02-09 09:46:07 -0800 |
commit | 9a05c66feb0c3c7877999827ce70765c656338f1 (patch) | |
tree | 78825e620341757918e33477748a1b790c3ed161 /src/mesa/drivers/dri/i965 | |
parent | 37a8d907cc167279f44e2e15f980cd93869a51f9 (diff) |
Revert "i965: prevent potentially null pointer access"
This reverts commit 712332ed54f14b5ee34c2990e351ca48992488b2, which
caused over 90k failures in Mesa i965 CI.
Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 3f74ee78f37..1f866cf8459 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -315,7 +315,7 @@ modifier_is_supported(const struct gen_device_info *devinfo, int i; /* ISL had better know about the modifier */ - if (!fmt || !modinfo) + if (!modinfo) return false; if (modinfo->aux_usage == ISL_AUX_USAGE_CCS_E) { |