r600g: optimise state setting in r600_draw_vbo.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 00:16:57 +0000 (10:16 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 04:22:42 +0000 (14:22 +1000)
commit9eb86f89a9d6471a92519064547a3937a6f89762
treeca01874377aa54f13b2d5dcb0ba391396546eda0
parent8fcafeb4757215d1cf56e1e0a2cc57837379475c
r600g: optimise state setting in r600_draw_vbo.

This drop the r600_draw_vbo CPU usage on a run of nexuiz from 1.40% to 0.72%
in sysprof for me on my Fusion APU.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c