diff options
author | Andre Maasikas <[email protected]> | 2010-09-13 16:17:10 +0300 |
---|---|---|
committer | Andre Maasikas <[email protected]> | 2010-09-13 16:19:18 +0300 |
commit | c82beb436b8272c8eb69f4cac15106953fefe9a1 (patch) | |
tree | 5a3443eec793968c71b863eab16370f658479eb6 /src/mesa | |
parent | 4ebf07a426771b62123e5fcb5a8be0de24037af1 (diff) |
r600c: eg - fix uninitialized variable
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r600/evergreen_chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |