r600c: eg - fix uninitialized variable
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 13 Sep 2010 13:17:10 +0000 (16:17 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Mon, 13 Sep 2010 13:19:18 +0000 (16:19 +0300)
src/mesa/drivers/dri/r600/evergreen_chip.c

index 694943c2c4b4400f256e0d7c89b32175f96d2270..3067b8bf589e1dbe37a256bc4339b34a59686b50 100644 (file)
@@ -893,6 +893,8 @@ static void evergreenSetDepthTarget(context_t *context)
 
     evergreen->DB_DEPTH_SIZE.u32All  = 0;        
     
+    nPitchInPixel = rrb->pitch/rrb->cpp;
+
     SETfield(evergreen->DB_DEPTH_SIZE.u32All, (nPitchInPixel/8)-1,
              EG_DB_DEPTH_SIZE__PITCH_TILE_MAX_shift, 
              EG_DB_DEPTH_SIZE__PITCH_TILE_MAX_mask);