From c82beb436b8272c8eb69f4cac15106953fefe9a1 Mon Sep 17 00:00:00 2001 From: Andre Maasikas Date: Mon, 13 Sep 2010 16:17:10 +0300 Subject: r600c: eg - fix uninitialized variable --- src/mesa/drivers/dri/r600/evergreen_chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/r600/evergreen_chip.c b/src/mesa/drivers/dri/r600/evergreen_chip.c index 694943c2c4..3067b8bf58 100644 --- a/src/mesa/drivers/dri/r600/evergreen_chip.c +++ b/src/mesa/drivers/dri/r600/evergreen_chip.c @@ -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); -- cgit v1.2.3