iris/resource: Fall back to no aux if creation fails
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 1 May 2019 21:42:58 +0000 (14:42 -0700)
committerNanley Chery <nanleychery@gmail.com>
Tue, 14 May 2019 16:23:12 +0000 (16:23 +0000)
commit75a3947af468ce39b7c9e3ba92a705b21546ea02
treeed439a573e13079e03950bac7e74370eabf09425
parent1423b786336b52df01b02e87d9221e82fc71b3a3
iris/resource: Fall back to no aux if creation fails

No surface requires an auxiliary surface to operate correctly. Fall back
to an uncompressed surface if mesa fails to create and allocate an
auxiliary surface. This enables adding more restrictions to ISL without
having to update iris.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/gallium/drivers/iris/iris_resource.c