diff options
author | Dave Airlie <[email protected]> | 2011-06-02 10:16:57 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-06-02 14:22:42 +1000 |
commit | 9eb86f89a9d6471a92519064547a3937a6f89762 (patch) | |
tree | ca01874377aa54f13b2d5dcb0ba391396546eda0 /src/gallium/drivers/r600/r600_pipe.h | |
parent | 8fcafeb4757215d1cf56e1e0a2cc57837379475c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 0e4cfeb5b80..1102c5c72eb 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -188,6 +188,7 @@ struct r600_pipe_context { struct r600_pipe_state ps_const_buffer; struct r600_pipe_state ps_const_buffer_resource[R600_MAX_CONST_BUFFERS]; struct r600_pipe_rasterizer *rasterizer; + struct r600_pipe_state vgt; /* shader information */ unsigned sprite_coord_enable; bool flatshade; |