summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-05-14 19:20:25 +0100
committerKeith Whitwell <keithw@vmware.com>2010-05-14 19:20:25 +0100
commit9c264642c385557d64b9bc6bbe31d2d15e703aff (patch)
treebe9a5eb3b0369128f05518b4e91984a1e459616d /src/gallium/drivers/r300
parent0bd1cbcd0d28dbadfb0c3e1f8b048a18b56bc72c (diff)
gallium: more work on ccw flag removal
The linux-debug target builds...
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_state.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 6e72f2ebdc..006a34119b 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -777,10 +777,10 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
rs->cull_mode = R300_FRONT_FACE_CW;
/* Polygon offset */
- if (state->offset_front) {
+ if (util_get_offset(state, state->fill_front)) {
rs->polygon_offset_enable |= R300_FRONT_ENABLE;
}
- if (state->offset_back) {
+ if (util_get_offset(state, state->fill_back)) {
rs->polygon_offset_enable |= R300_BACK_ENABLE;
}
@@ -862,7 +862,9 @@ static void r300_bind_rs_state(struct pipe_context* pipe, void* state)
}
if (rs) {
- r300->polygon_offset_enabled = rs->rs.offset_cw || rs->rs.offset_ccw;
+ r300->polygon_offset_enabled = (rs->rs.offset_point ||
+ rs->rs.offset_line ||
+ rs->rs.offset_tri);
r300->sprite_coord_enable = rs->rs.sprite_coord_enable;
r300->two_sided_color = rs->rs.light_twoside;
} else {