dri: fromPlanar() can return NULL as a valid result
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Thu, 28 Sep 2017 07:18:33 +0000 (03:18 -0400)
committerDaniel Stone <daniels@collabora.com>
Thu, 15 Feb 2018 11:58:17 +0000 (11:58 +0000)
commita34715ad9c84c4209de4c16fdf40655181350bd9
tree7c3fba35424f8364fd77d290380a1dd87c2afc16
parentf0654dfa65e4004bcc9a4bea80f1e6a04a75ecff
dri: fromPlanar() can return NULL as a valid result

It was assumed that fromPlanar() could return NULL to mean
that the planar image is the same as the parent DRI image.
That assumption wasn't made everywhere though.

Let's fix things and make sure that all callers understand
a NULL result

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_wayland.c
src/gbm/backends/dri/gbm_dri.c
src/loader/loader_dri3_helper.c