diff options
author | Daniel Stone <[email protected]> | 2018-02-12 17:54:41 +0000 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-12 15:14:45 -0800 |
commit | c2c4e5bae3ba27bbdaafd8787a3e96266f82e70c (patch) | |
tree | 154d5530b94d3158ea606dd3b6ae45c66c145784 /src/mesa/tnl | |
parent | 1aed66dc1e7391914ba9ae5fd692cc97fc728096 (diff) |
i965: Fix bugs in intel_from_planar
This commit fixes two bugs in intel_from_planar. First, if the planar
format was non-NULL but only had a single plane, we were falling through
to the planar case. If we had a CCS modifier and plane == 1, we would
return NULL instead of the CCS plane. Second, if we did end up in the
planar_format == NULL case and the modifier was DRM_FORMAT_MOD_INVALID,
we would end up segfaulting in isl_drm_modifier_has_aux.
Cc: [email protected]
Fixes: 8f6e54c92966bb94a3f05f2cc7ea804273e125ad
Signed-off-by: Daniel Stone <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/tnl')
0 files changed, 0 insertions, 0 deletions