Fix initialisation of cubic tecture offsets (Andreas Stenglein)
authorMichel Dänzer <michel@daenzer.net>
Wed, 14 Jan 2004 02:26:28 +0000 (02:26 +0000)
committerMichel Dänzer <michel@daenzer.net>
Wed, 14 Jan 2004 02:26:28 +0000 (02:26 +0000)
src/mesa/drivers/dri/r200/r200_state_init.c

index 88797191d2ec3229fc50c66f595c02e729c7f6c7..22ad4e376e7d9cffb843174e735f3e403fe5aa7c 100644 (file)
@@ -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] =