[Mesa-dev] [PATCH 0/3] Array object cleanup.

Mathias Fröhlich Mathias.Froehlich at gmx.net
Thu Dec 29 14:12:34 PST 2011


Hi,

Following a short series of cleanup following the gl_array_object change.
The most important change is the use ot an ffs based loop to compute 
gl_array_object::_MaxElement. This change provides a noticable performance 
improovement for my average workloads.
To implement this, a small set of helper functions is introduced in the patch 
before, to compute the bitmasks of enabled arrays taking into account the 
aliasing rules for the different arrays.
The first patch just makes use of the recently introduced BITFIELD64_RANGE 
macro where it makes sense.

The complete changeset survives a piglit quick run for r600g/rv770 and swrast 
without regressions.

Please review.
Thanks

Mathias


Mathias Fröhlich (3):
  mesa: Use BITFIELD64_RANGE for VERT_BIT_*_ALL.
  mesa: Introduce enabled bitfield helper functions.
  mesa: Clean up gl_array_object::_MaxElement computation.

 src/mesa/main/arrayobj.c |   41 +++++++++++------
 src/mesa/main/arrayobj.h |   38 +++++++++++++++
 src/mesa/main/mtypes.h   |   14 ++++--
 src/mesa/main/state.c    |  116 +--------------------------------------------
 4 files changed, 77 insertions(+), 132 deletions(-)

-- 
1.7.4.4


More information about the mesa-dev mailing list