[Mesa-dev] [PATCH 4/5] anv/image: Refactor creation of aux surfaces

Chad Versace chadversary at chromium.org
Thu Mar 9 00:27:21 UTC 2017


On Mon 06 Mar 2017, Jason Ekstrand wrote:
> On Mon, Mar 6, 2017 at 10:18 AM, Chad Versace <chadversary at chromium.org>
> wrote:
> 
> > Creation of hiz, ccs, and mcs surfaces was encoded by a giant 'if' tree
> > at the tail of make_surface(). This patch extracts that 'if' tree into
> > the new functions:
> >
> >     make_hiz_surface_maybe()
> >     make_ccs_surface_maybe()
> >     make_mcs_surface_maybe()
> >
> 
> How about "try_make_hiz_surface"?  _maybe doesn't sit right with me.

Ok. I'll rename them 'try'.


More information about the mesa-dev mailing list