i965: Make get_ccs_surf succeed in alloc_aux
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 16 May 2018 17:10:35 +0000 (10:10 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 18 May 2018 16:53:06 +0000 (09:53 -0700)
commitda98441fefd051d681b2834b496567285a8836d3
tree2bcdc0edb462760b246ba209b04e643e0eb68a2b
parent42aee8f4f68d9fd3ece5ece57f23f63a60e7d1fa
i965: Make get_ccs_surf succeed in alloc_aux

Synchronize the requirements listed in isl_surf_get_ccs_surf with
intel_miptree_supports_ccs by importing a restriction from ISL. Some
implications:
* We successfully create every aux_surf in alloc_aux
* We only return false from alloc_aux if we run out of memory

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c