iris: don't assert on unfinished aux import in copy paths
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 21 Apr 2020 09:25:44 +0000 (12:25 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 21:18:42 +0000 (21:18 +0000)
commit612e35c8d94241b07b32a6010ccd1a3edd473439
treed135c18f7674ca7370d2aedc60f8183e7ac398fb
parentd56b8c45547086ce23873a58de58484f59ad3a9a
iris: don't assert on unfinished aux import in copy paths

After a resource is created the first command using it could be a copy
command.

In iris_state we finish the import on surface/view creation but we
don't do that for copies.

v2: Move finish call to gallium entrypoints (Ken)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2725
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4657>
src/gallium/drivers/iris/iris_blit.c
src/gallium/drivers/iris/iris_clear.c
src/gallium/drivers/iris/iris_resource.c