diff options
author | Cooper Yuan <cooperyuan@gmail.com> | 2009-05-25 14:51:36 +0800 |
---|---|---|
committer | Cooper Yuan <cooperyuan@gmail.com> | 2009-05-25 14:51:36 +0800 |
commit | 34010b11fdbf048db22c2e41cd41dff221692f27 (patch) | |
tree | 69ba31d67716575fc44a8d5bc505f40c2713bfe2 | |
parent | 8669a81d98df2ec689b9b2e6d52e0e8c1048caeb (diff) |
R6xx, add edge rules for trianglesr6xx-r7xx-support
-rw-r--r-- | 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 9449a40f71..55fd42640d 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, |