[Mesa-dev] [RFC v2 12/23] anv: Handle failure in make_hiz_surface_maybe()

2017-08-30 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace make_ccs_surface_maybe() correctly handles failure isl_surf_get_ccs_surf(). When it fails, the resultant VkImage is still valid, just without a ccs surface. Same of make_mcs_surface_maybe() and isl_surf_get_mcs_surf(). Fix make_hiz_surface_maybe()

[Mesa-dev] [RFC v2 12/23] anv: Handle failure in make_hiz_surface_maybe()

2017-07-13 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace make_ccs_surface_maybe() correctly handles failure isl_surf_get_ccs_surf(). When it fails, the resultant VkImage is still valid, just without a ccs surface. Same of make_mcs_surface_maybe() and isl_surf_get_mcs_surf(). Fix make_hiz_surface_maybe()