iris: Fix import of multi-planar surfaces with modifiers
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 15 Nov 2019 17:17:23 +0000 (09:17 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 6 Dec 2019 20:31:48 +0000 (20:31 +0000)
commit21376cffb37018160ad3eef38b5a640ba1675a4f
treea4ca0865db91dc93cc0f9b46cb3ef9d0d230362c
parent51ee8fff9b5e803592a2fd34730fdcfdfba469cb
iris: Fix import of multi-planar surfaces with modifiers

Multi-planar surfaces are allowed to have modifiers. Don't require
DRM_FORMAT_MOD_INVALID in order to create a surface for each plane
defined by the format.

Fixes: 246eebba4a8 ("iris: Export and import surfaces with modifiers that have aux data")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h