diff options
author | Kenneth Graunke <[email protected]> | 2013-06-08 09:57:54 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-06-10 10:58:46 -0700 |
commit | 6c966ccf07bcaf64fba1a9b699440c30dc96e732 (patch) | |
tree | 672eccbcce981fb065047940f8621697d39d803c /src/mesa/drivers/dri/i965/brw_state_upload.c | |
parent | b607d57630daa7d92a84c41abfd45cacbe63f3d2 (diff) |
i965: Disable unused pipeline stages once at startup on Gen7+.
This removes a tiny bit of code from our drawing loop.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state_upload.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 6a69a677dde..fa9b5af2e6b 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -211,7 +211,6 @@ static const struct brw_tracked_state *gen7_atoms[] = &gen7_samplers, &gen6_multisample_state, - &gen7_disable_stages, &gen7_vs_state, &gen7_sol_state, &gen7_clip_state, @@ -252,6 +251,10 @@ brw_upload_initial_gpu_state(struct brw_context *brw) return; brw_upload_invariant_state(brw); + + if (intel->gen >= 7) { + gen7_disable_unused_stages(brw); + } } void brw_init_state( struct brw_context *brw ) |