[Mesa-dev] [PATCH 4/7] i965: Compile out gen_atoms lists based on STATIC_GEN.
mattst88 at gmail.com
Wed Jun 11 15:02:57 PDT 2014
On Wed, Jun 11, 2014 at 2:12 PM, Kristian Høgsberg <hoegsberg at gmail.com> wrote:
> On Tue, Jun 10, 2014 at 09:57:20PM -0700, Matt Turner wrote:
>> From: Kenneth Graunke <kenneth at whitecape.org>
>> This allows GCC (at least with LTO) to eliminate more unused code, such
>> as brw_clip* on Gen6+.
> If we compile with STATIC_GEN, then the if-else ladder in brw_init_state()
> turns into just the one case that matters. All other atom arrays are
> unreferenced and eliminated (at least if you're not compiling with -O0), so
> this patch isn't necessary.
Good call. I'll drop it.
More information about the mesa-dev