iris: finish aux import on get_param
authorJames Xiong <james.xiong@intel.com>
Mon, 14 Oct 2019 22:55:18 +0000 (15:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Oct 2019 23:19:04 +0000 (23:19 +0000)
commitfd235484fef7d9164f98cc907d10cf680881a9c6
tree5dd3c38554fc717bc27315e496126a6fada4a281
parente6ca6e587e7f88d6b06c0a5c966438beac6cb18e
iris: finish aux import on get_param

A buffer and its aux are imported separately, if the aux import is
not completed yet when resource_get_param is called, merge the
separate aux a.k.a the 2nd image into the main image.

Fixes: 246eebba4a8 ("iris: Export and import surfaces with modifiers that have aux data")
Signed-off-by: James Xiong <james.xiong@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/iris/iris_resource.c