diff options
author | Chia-I Wu <[email protected]> | 2015-06-15 11:57:10 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-15 15:06:11 +0800 |
commit | 8f37e8e64fc897180603a7247e2fd47bf0ffb834 (patch) | |
tree | 4fb6a0e3b88a8b93f5d031819223dac4d69067ce /src/gallium/drivers/ilo/ilo_render_gen6.c | |
parent | b0a2280e45e5abc56e5301f84f33226469000d6c (diff) |
ilo: add 3DSTATE_AA_LINE_PARAMETERS to ilo_state_raster
Utilize ilo_state_raster to avoid redundant state change.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render_gen6.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_render_gen6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render_gen6.c b/src/gallium/drivers/ilo/ilo_render_gen6.c index 30abead0cdc..22081e44c03 100644 --- a/src/gallium/drivers/ilo/ilo_render_gen6.c +++ b/src/gallium/drivers/ilo/ilo_render_gen6.c @@ -774,11 +774,12 @@ gen6_draw_wm_raster(struct ilo_render *r, } /* 3DSTATE_AA_LINE_PARAMETERS */ - if (DIRTY(RASTERIZER) && vec->rasterizer->state.line_smooth) { + if (session->rs_delta.dirty & + ILO_STATE_RASTER_3DSTATE_AA_LINE_PARAMETERS) { if (ilo_dev_gen(r->dev) == ILO_GEN(6)) gen6_wa_pre_non_pipelined(r); - gen6_3DSTATE_AA_LINE_PARAMETERS(r->builder); + gen6_3DSTATE_AA_LINE_PARAMETERS(r->builder, &vec->rasterizer->rs); } } |