anv: avoid null pointer dereference
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 3 May 2017 05:06:01 +0000 (22:06 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 8 May 2017 13:38:27 +0000 (14:38 +0100)
commit6247b8b41321087a8931becc812819a76fcaebbb
tree91aca738fa3b09895fa53741b763511b62f509b0
parentdc795f85a56ee95f16ef33c7cf6b373506c9b0d6
anv: avoid null pointer dereference

The application might not give an output structure.

CID: 1405765 (Null pointer dereferences)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/vulkan/anv_formats.c