diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-21 12:14:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-21 12:14:42 +1000 |
commit | b453b0e2e1c82e6d08180c341989d6d0c05f21fa (patch) | |
tree | 71ba6f6dd9def8015a4e2084466467f19d2f3b38 | |
parent | 9ec2b1c83f3390dac2e5e7d3aa21ff4920f29243 (diff) |
r500: set the RS unit register for R500 not R300 dangnammit..
So this appears to be my BUG. damn it to hell.
also fix sec color to be more like spec says.
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index 74b95d107c..496b76dce4 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -1552,7 +1552,7 @@ static void r300SetupRSUnit(GLcontext * ctx) if (InputsRead & FRAG_BIT_COL1) { count = VB->AttribPtr[_TNL_ATTRIB_COLOR1]->size; if (count == 3) - interp_col[1] |= R300_RS_COL_FMT(R300_RS_COL_FMT_RGB1); + interp_col[1] |= R300_RS_COL_FMT(R300_RS_COL_FMT_RGB0); interp_col[1] |= R300_RS_COL_PTR(1); rs_col_count += count; } @@ -1701,7 +1701,7 @@ static void r500SetupRSUnit(GLcontext * ctx) count = VB->AttribPtr[_TNL_ATTRIB_COLOR1]->size; interp_col[1] |= R500_RS_COL_PTR(1); if (count == 3) - interp_col[1] |= R500_RS_COL_FMT(R300_RS_COL_FMT_RGB1); + interp_col[1] |= R500_RS_COL_FMT(R300_RS_COL_FMT_RGB0); rs_col_count += count; } @@ -1791,7 +1791,7 @@ static void r500SetupRSUnit(GLcontext * ctx) | R300_HIRES_EN; assert(high_rr >= 0); - r300->hw.rr.cmd[R300_RR_CMD_0] = cmdpacket0(R300_RS_INST_0, high_rr + 1); + r300->hw.rr.cmd[R300_RR_CMD_0] = cmdpacket0(R500_RS_INST_0, high_rr + 1); r300->hw.rc.cmd[2] = 0xC0 | high_rr; if (InputsRead) |