Re: [Mesa-dev] [PATCH 4/7] i965: Compile out gen[467]_atoms lists based on STATIC_GEN.

2014-06-11 Thread Matt Turner
On Wed, Jun 11, 2014 at 2:12 PM, Kristian Høgsberg wrote: > On Tue, Jun 10, 2014 at 09:57:20PM -0700, Matt Turner wrote: >> From: Kenneth Graunke >> >> 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-

Re: [Mesa-dev] [PATCH 4/7] i965: Compile out gen[467]_atoms lists based on STATIC_GEN.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 09:57:20PM -0700, Matt Turner wrote: > From: Kenneth Graunke > > 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 m

[Mesa-dev] [PATCH 4/7] i965: Compile out gen[467]_atoms lists based on STATIC_GEN.

2014-06-10 Thread Matt Turner
From: Kenneth Graunke This allows GCC (at least with LTO) to eliminate more unused code, such as brw_clip* on Gen6+. --- src/mesa/drivers/dri/i965/brw_state_upload.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i96