Module: Mesa Branch: r6xx-r7xx-support Commit: 34010b11fdbf048db22c2e41cd41dff221692f27 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34010b11fdbf048db22c2e41cd41dff221692f27
Author: Cooper Yuan <[email protected]> Date: Mon May 25 14:51:36 2009 +0800 R6xx, add edge rules for triangles --- src/mesa/drivers/dri/r600/r700_state.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c index 9449a40..55fd426 100644 --- a/src/mesa/drivers/dri/r600/r700_state.c +++ b/src/mesa/drivers/dri/r600/r700_state.c @@ -651,6 +651,9 @@ void r700InitState(GLcontext * ctx) r700->PA_SC_CLIPRECT_3_TL.u32All = r700->PA_SC_CLIPRECT_0_TL.u32All; r700->PA_SC_CLIPRECT_3_BR.u32All = r700->PA_SC_CLIPRECT_0_BR.u32All; + /* edgerule for triangles, points, recs, lines */ + r700->PA_SC_EDGERULE.u32All = 0x555AA96A; + /* more....2d clip */ SETbit(r700->PA_SC_GENERIC_SCISSOR_TL.u32All, WINDOW_OFFSET_DISABLE_bit); SETfield(r700->PA_SC_GENERIC_SCISSOR_TL.u32All, context->currentDraw->x, _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
