summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2004-01-14 02:26:28 +0000
committerMichel Dänzer <[email protected]>2004-01-14 02:26:28 +0000
commit067603db91072fc3b02e1583195641972f81168f (patch)
tree6b4c458dcba45872258c1898b99ee96a8d0fea6f /src/mesa/drivers/dri/r200
parent5da27de003e62a9086cacf0aca0534485c2ad1cb (diff)
Fix initialisation of cubic tecture offsets (Andreas Stenglein)
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_state_init.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c
index 88797191d2e..22ad4e376e7 100644
--- a/src/mesa/drivers/dri/r200/r200_state_init.c
+++ b/src/mesa/drivers/dri/r200/r200_state_init.c
@@ -504,11 +504,16 @@ void r200InitState( r200ContextPtr rmesa )
0x100000); /* Small default bias */
rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_FACES] = 0;
- rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F1] = 0;
- rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F2] = 0;
- rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F3] = 0;
- rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F4] = 0;
- rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F5] = 0;
+ rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F1] =
+ rmesa->r200Screen->texOffset[RADEON_CARD_HEAP];
+ rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F2] =
+ rmesa->r200Screen->texOffset[RADEON_CARD_HEAP];
+ rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F3] =
+ rmesa->r200Screen->texOffset[RADEON_CARD_HEAP];
+ rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F4] =
+ rmesa->r200Screen->texOffset[RADEON_CARD_HEAP];
+ rmesa->hw.cube[i].cmd[CUBE_PP_CUBIC_OFFSET_F5] =
+ rmesa->r200Screen->texOffset[RADEON_CARD_HEAP];
}
rmesa->hw.pix[0].cmd[PIX_PP_TXCBLEND] =