aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r600
diff options
context:
space:
mode:
authorCooper Yuan <[email protected]>2009-05-28 16:51:49 -0400
committerAlex Deucher <[email protected]>2009-05-28 16:51:49 -0400
commit5ff3368c1f33bfb39d21c774ad71e4be7cbb9b21 (patch)
tree6055ec936508977fd66dd48da74f9321f031505a /src/mesa/drivers/dri/r600
parent98bc31171770456e245c157d19433f7d5ea28438 (diff)
R6xx, add edge rules for triangles
Diffstat (limited to 'src/mesa/drivers/dri/r600')
-rw-r--r--src/mesa/drivers/dri/r600/r700_state.c3
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 117d0add8b8..d45580178da 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -642,6 +642,9 @@ void r700SetRenderTarget(context_t *context)
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->radeon.dri.drawable->x,