[Mesa-dev] [RFC v2 11/23] anv/image: Refactor creation of aux surfaces

2017-08-30 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace 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()

[Mesa-dev] [RFC v2 11/23] anv/image: Refactor creation of aux surfaces

2017-07-13 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace 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()