i965: Track the number of samples in the drawbuffer.
authorEric Anholt <eric@anholt.net>
Fri, 25 Apr 2014 23:39:18 +0000 (16:39 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 Apr 2014 21:33:21 +0000 (14:33 -0700)
commit60c5f9716c90090f41e0796e93cc60a297fa883b
tree28e36c42c0eea0089e09a00e8a186e287470bea3
parent973345fc2389e7f74b8732052e781672c4e135c2
i965: Track the number of samples in the drawbuffer.

This keeps us from having to emit the nonpipelined state packet on every
FBO binding.

-4.42003% +/- 1.09961% effect on cairo-perf-trace runtime on glamor (n=110).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen6_multisample_state.c
src/mesa/drivers/dri/i965/gen8_multisample_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c