iris: Don't guess the aux_usage
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 1 Aug 2019 23:49:57 +0000 (16:49 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:06 +0000 (10:47 -0700)
commit909030bca664bd71b95d662afbfabdca3a9c4146
treee9101c3820bea036414c0652032fa1f21151ca89
parent04e5f7e8a9ecd7ffa6e5cd81317e53899e397f1c
iris: Don't guess the aux_usage

Instead of guessing an aux_usage, then confirming it if the
isl_surf_get_*_surf functions are successful, just call the ISL
functions up-front. This will help us to more easily determine if a
depth buffer supports HIZ_CCS.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resource.c