From: Andre Maasikas Date: Mon, 13 Sep 2010 13:17:10 +0000 (+0300) Subject: r600c: eg - fix uninitialized variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82beb436b8272c8eb69f4cac15106953fefe9a1;p=mesa.git r600c: eg - fix uninitialized variable --- diff --git a/src/mesa/drivers/dri/r600/evergreen_chip.c b/src/mesa/drivers/dri/r600/evergreen_chip.c index 694943c2c4b..3067b8bf589 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);