Re: [Mesa-dev] [PATCH 5/5] anv: Handle failure in make_hiz_surface_maybe()

2017-03-08 Thread Chad Versace
On Mon 06 Mar 2017, Jason Ekstrand wrote: > On Mon, Mar 6, 2017 at 10:18 AM, Chad Versace > wrote: > > > 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_su

Re: [Mesa-dev] [PATCH 5/5] anv: Handle failure in make_hiz_surface_maybe()

2017-03-06 Thread Jason Ekstrand
On Mon, Mar 6, 2017 at 10:18 AM, Chad Versace wrote: > 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_hi

[Mesa-dev] [PATCH 5/5] anv: Handle failure in make_hiz_surface_maybe()

2017-03-06 Thread 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() to do the same. --- src/intel/vulkan/anv_image.c