Re: [Mesa-dev] [PATCH] Drop the "neutral" tnl module

2010-10-13 Thread Chia-I Wu
2010/10/14 Kristian Høgsberg : > 2010/10/13 Kristian Høgsberg : >> Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices >> when necessary.  By using the unlikely() macros, this ends up as >> a 10% performance improvement (for isosurf, anyway) over the old, >> complicated functio

Re: [Mesa-dev] [PATCH] Drop the "neutral" tnl module

2010-10-13 Thread Keith Whitwell
Looks good Kristian. This has been worthy of cleanup for some time... Keith 2010/10/13 Kristian Høgsberg : > 2010/10/13 Kristian Høgsberg : >> Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices >> when necessary.  By using the unlikely() macros, this ends up as >> a 10% per

Re: [Mesa-dev] [PATCH] Drop the "neutral" tnl module

2010-10-13 Thread Kristian Høgsberg
2010/10/13 Kristian Høgsberg : > Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices > when necessary.  By using the unlikely() macros, this ends up as > a 10% performance improvement (for isosurf, anyway) over the old, > complicated function pointer swapping. > --- I should s

[Mesa-dev] [PATCH] Drop the "neutral" tnl module

2010-10-13 Thread Kristian Høgsberg
Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping. --- src/mesa/main/context.c |5 --- src/mesa/ma