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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to