[Mesa-dev] [PATCH 00/24] st/mesa cleanups and micro-optimizations

Marek Olšák maraeo at gmail.com
Mon Jun 12 18:18:31 UTC 2017


Hi,

This follows the "Mesa: Moving from _NEW flags to NewDriverState" series
and the PIPE_CAP_BLEND_STATE_SRGB_ENABLE series.

These are micro-optimizations aimed to decrease CPU overhead.

Before (thousands draws per second):
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ shader program change: 336
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ 1 texture change:      644
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ 8 textures change:     376

After:
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ shader program change: 394
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ 1 texture change:      795
  DrawElements ( 1 VBOs, 4 UBOs,  8 Tex) w/ 8 textures change:     414

Please review.

Marek


More information about the mesa-dev mailing list